Skip to content

Commit

Permalink
fix: Ensure to not run prepare scripts on install preparation
Browse files Browse the repository at this point in the history
Those scripts are meant only to be run in top level installs
  • Loading branch information
medikoo committed Nov 4, 2021
1 parent 2b98acf commit 7344bad
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module.exports = {
const originalPkgJson = await readFile(pkgJsonPath);
const pkgJson = JSON.parse(originalPkgJson);
delete pkgJson.devDependencies;
if (pkgJson.scripts) delete pkgJson.scripts.prepare;
await writeFile(pkgJsonPath, JSON.stringify(pkgJson));
await runProgram("npm", ["install", "--production"], {
cwd: tmpDir,
Expand Down

0 comments on commit 7344bad

Please sign in to comment.