Merge pull request #5526 from uinstinct/double-esbuild
remove generic esbuild binary from build
This commit is contained in:
commit
b22a323be2
3 changed files with 8 additions and 4 deletions
|
|
@ -209,10 +209,9 @@ async function package(target, os, arch, exe) {
|
|||
: `${target}${os === "linux" ? "-gnu" : ""}`
|
||||
}/index.node`,
|
||||
`out/node_modules/esbuild/lib/main.js`,
|
||||
`out/node_modules/esbuild/bin/esbuild`,
|
||||
]);
|
||||
}
|
||||
|
||||
(async () => {
|
||||
void (async () => {
|
||||
await package(target, os, arch, exe);
|
||||
})();
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ const isWinTarget = target?.startsWith("win");
|
|||
const isLinuxTarget = target?.startsWith("linux");
|
||||
const isMacTarget = target?.startsWith("darwin");
|
||||
|
||||
(async () => {
|
||||
void (async () => {
|
||||
console.log("[info] Packaging extension for target ", target);
|
||||
|
||||
// Generate and copy over config-yaml-schema.json
|
||||
|
|
@ -464,6 +464,9 @@ const isMacTarget = target?.startsWith("darwin");
|
|||
),
|
||||
);
|
||||
|
||||
// delete esbuild/bin because platform-specific @esbuild is downloaded
|
||||
fs.rmdirSync(`out/node_modules/esbuild/bin`, { recursive: true });
|
||||
|
||||
console.log(`[info] Copied ${NODE_MODULES_TO_COPY.join(", ")}`);
|
||||
|
||||
// Copy over any worker files
|
||||
|
|
@ -530,6 +533,5 @@ const isMacTarget = target?.startsWith("darwin");
|
|||
}`,
|
||||
`out/node_modules/@lancedb/vectordb-${target}${isWinTarget ? "-msvc" : ""}${isLinuxTarget ? "-gnu" : ""}/index.node`,
|
||||
`out/node_modules/esbuild/lib/main.js`,
|
||||
`out/node_modules/esbuild/bin/esbuild`,
|
||||
]);
|
||||
})();
|
||||
|
|
|
|||
|
|
@ -301,6 +301,9 @@ async function copyNodeModules() {
|
|||
),
|
||||
);
|
||||
|
||||
// delete esbuild/bin because platform-specific @esbuild is downloaded
|
||||
fs.rmdirSync(`out/node_modules/esbuild/bin`, {recursive: true});
|
||||
|
||||
console.log(`[info] Copied ${NODE_MODULES_TO_COPY.join(", ")}`);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue