Skip to content

Commit 887832b

Browse files
committed
init
1 parent bfeac82 commit 887832b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/util/backend/npm-sanbox.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ export async function runInSandbox(name: string, version: string): Promise<PkgSi
1717
const pwd = await sandbox.runCommand('pwd');
1818
console.log(`Working dir: ${await pwd.stdout()}`);
1919

20+
const init = await sandbox.runCommand(`npm init -y`);
21+
console.log(`npm init: ${await init.stdout()}`);
22+
2023
const install = await sandbox.runCommand(`npm init -y && npm install ${name}@${version}`);
2124
console.log(`npm install: ${await install.stdout()}`);
2225

0 commit comments

Comments
 (0)