👷 fix yarn add --no-save in prepackge

This commit is contained in:
Nate Sesti 2024-05-09 13:47:43 -07:00
parent b99fcbc546
commit 8a2e18a626
2 changed files with 1261 additions and 1248 deletions

View file

@ -287,13 +287,16 @@ const exe = os === "win32" ? ".exe" : "";
// Neither lancedb nor sqlite3 have pre-built windows arm64 binaries
if (!isWin()) {
// lancedb binary
console.log("[info] Downloading pre-built lancedb binary");
rimrafSync("node_modules/@lancedb");
const packageToInstall = {
"darwin-arm64": "@lancedb/vectordb-darwin-arm64",
"linux-arm64": "@lancedb/vectordb-linux-arm64-gnu",
}[target];
execCmdSync(`yarn install -f ${packageToInstall} --no-save`);
console.log(
"[info] Downloading pre-built lancedb binary: " + packageToInstall,
);
rimrafSync("node_modules/@lancedb");
execCmdSync(`yarn add ${packageToInstall} --no-save --no-lockfile`);
execCmdSync(`yarn remove ${packageToInstall}`);
}
// Download and unzip esbuild

File diff suppressed because it is too large Load diff