Skip to content

Commit

Permalink
feat: do not sidestep package.json during dep install
Browse files Browse the repository at this point in the history
  • Loading branch information
alexplischke committed Oct 10, 2024
1 parent f169340 commit 5936d9e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ export default class NPM {
}

public static async install(nodeCtx: NodeContext, pkgs: string[]) {
await this.renamePackageJson();

let p;

if (nodeCtx.useGlobals) {
Expand All @@ -53,11 +51,7 @@ export default class NPM {
});
});

const exitCode = await exitPromise;

await this.restorePackageJson();

return exitCode;
return await exitPromise;
}

public static configure(
Expand Down

0 comments on commit 5936d9e

Please sign in to comment.