Build fixes: Remove duplicated code, re-add overwritten commit (#1358)
* readd overwritten commit * Remove duplicated code
This commit is contained in:
parent
42aad40454
commit
645d267376
2 changed files with 2 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue