Skip to content

Commit

Permalink
Build fixes: Remove duplicated code, re-add overwritten commit (#1358)
Browse files Browse the repository at this point in the history
* readd overwritten commit

* Remove duplicated code
  • Loading branch information
justinmilner1 committed May 27, 2024
1 parent 42aad40 commit 645d267
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion binary/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion extensions/vscode/scripts/prepackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 645d267

Please sign in to comment.