From 5fa1ebed4009c30b793d94036c547eff9533fee0 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 16 Oct 2024 18:27:12 -0700 Subject: [PATCH] undo unneeded fix for win build --- extensions/vscode/scripts/prepackage.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index f4fd7dcb8..7ef71035b 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -314,12 +314,7 @@ const exe = os === "win32" ? ".exe" : ""; const currentDir = process.cwd(); // Remove the dir we will be copying to - if (os === "win32" && !ghAction()) { - // In local development (Launch Extension task) - // we will have esbuild-watch going during this time - // and windows will throw an error when you try to remove - rimrafSync(`node_modules/${toCopy}`); - } + rimrafSync(`node_modules/${toCopy}`); // Ensure the temporary directory exists fs.mkdirSync(tempDir, { recursive: true }); @@ -514,8 +509,8 @@ const exe = os === "win32" ? ".exe" : ""; os === "darwin" ? "libonnxruntime.1.14.0.dylib" : os === "linux" - ? "libonnxruntime.so.1.14.0" - : "onnxruntime.dll" + ? "libonnxruntime.so.1.14.0" + : "onnxruntime.dll" }`, "builtin-themes/dark_modern.json", @@ -554,8 +549,8 @@ const exe = os === "win32" ? ".exe" : ""; target === "win32-arm64" ? "esbuild.exe" : target === "win32-x64" - ? "win32-x64/esbuild.exe" - : `${target}/bin/esbuild` + ? "win32-x64/esbuild.exe" + : `${target}/bin/esbuild` }`, `out/node_modules/@lancedb/vectordb-${ os === "win32"