Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Commit

Permalink
feat: support preinstall
Browse files Browse the repository at this point in the history
Closes #4
  • Loading branch information
dominykas committed Jan 29, 2019
1 parent fe41e26 commit 04dd93c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ exports.run = (cmd = 'install') => {
return allowScripts[name];
});

allowedScripts.forEach(([path, childPkg]) => internals.runScript('preinstall', { childPkg, path, cwd }));
allowedScripts.forEach(([path, childPkg]) => internals.runScript('install', { childPkg, path, cwd }));
allowedScripts.forEach(([path, childPkg]) => internals.runScript('postinstall', { childPkg, path, cwd }));
};

0 comments on commit 04dd93c

Please sign in to comment.