remove esbuild from binary build script
This commit is contained in:
parent
39e2da7feb
commit
1a85fd61f7
1 changed files with 0 additions and 23 deletions
|
|
@ -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`,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue