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

Commit 04dd93c

Browse files
committed
feat: support preinstall
Closes #4
1 parent fe41e26 commit 04dd93c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ exports.run = (cmd = 'install') => {
103103
return allowScripts[name];
104104
});
105105

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

0 commit comments

Comments
 (0)