From 1a85fd61f78bc989805144cfb581835ddcc752bc Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 14 Oct 2024 13:35:51 -0700 Subject: [PATCH] remove esbuild from `binary` build script --- binary/build.js | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/binary/build.js b/binary/build.js index 016afe9bd..ce8f3997e 100644 --- a/binary/build.js +++ b/binary/build.js @@ -270,34 +270,12 @@ async function installNodeModuleInTempDirAndCopyToCurrent(packageName, toCopy) { fs.unlinkSync(`${targetDir}/build.tar.gz`); - // Download and unzip prebuilt esbuild binary for the target - console.log(`[info] Downloading esbuild for ${target}...`); - // Version is pinned to 0.19.11 in package.json to make sure that they match - execCmdSync( - `curl -o ${targetDir}/esbuild.tgz https://registry.npmjs.org/@esbuild/${target}/-/${target}-0.19.11.tgz`, - ); - execCmdSync(`tar -xzvf ${targetDir}/esbuild.tgz -C ${targetDir}`); - if (target.startsWith("win32")) { - fs.cpSync(`${targetDir}/package/esbuild.exe`, `${targetDir}/esbuild.exe`); - } else { - fs.cpSync(`${targetDir}/package/bin/esbuild`, `${targetDir}/esbuild`); - } - fs.rmSync(`${targetDir}/esbuild.tgz`); - fs.rmSync(`${targetDir}/package`, { - force: true, - recursive: true, - }); - // copy @lancedb to bin folders console.log("[info] Copying @lancedb files to bin"); fs.copyFileSync( `node_modules/${targetToLanceDb[target]}/index.node`, `${targetDir}/index.node`, ); - } - // execCmdSync( - // `npx pkg out/index.js --target node18-darwin-arm64 --no-bytecode --public-packages "*" --public -o bin/pkg` - // ); const pathsToVerify = []; for (target of targets) { @@ -305,7 +283,6 @@ async function installNodeModuleInTempDirAndCopyToCurrent(packageName, toCopy) { const targetDir = `bin/${target}`; pathsToVerify.push( `${targetDir}/continue-binary${exe}`, - `${targetDir}/esbuild${exe}`, `${targetDir}/index.node`, // @lancedb "package.json", // Informs of where to look for node_sqlite3.node https://www.npmjs.com/package/bindings#:~:text=The%20searching%20for,file%20is%20found `${targetDir}/build/Release/node_sqlite3.node`,