diff --git a/binary/build.js b/binary/build.js index 46ca31c7e..366cf391f 100644 --- a/binary/build.js +++ b/binary/build.js @@ -51,7 +51,7 @@ async function installNodeModuleInTempDirAndCopyToCurrent(packageName, toCopy) { console.log(`Copying ${packageName} to ${toCopy}`); // This is a way to install only one package without npm trying to install all the dependencies // Create a temporary directory for installing the package - const adjustedName = packageName.replace(/^@/, "").replace("/", "-"); + const adjustedName = toCopy.replace(/^@/, "").replace("/", "-"); const tempDir = path.join( __dirname, "tmp", diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index 1538261f2..d276ac458 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -316,7 +316,7 @@ const exe = os === "win32" ? ".exe" : ""; console.log(`Copying ${packageName} to ${toCopy}`); // This is a way to install only one package without npm trying to install all the dependencies // Create a temporary directory for installing the package - const adjustedName = packageName.replace(/^@/, "").replace("/", "-"); + const adjustedName = toCopy.replace(/^@/, "").replace("/", "-"); const tempDir = `/tmp/continue-node_modules-${adjustedName}`; const currentDir = process.cwd();