mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-26 11:02:01 -04:00
fix(install): main post install scripts do not execute when --ignore-scripts
This commit is contained in:
@@ -74,6 +74,7 @@ function install (packagesToInstall, opts) {
|
||||
}
|
||||
|
||||
function mainPostInstall () {
|
||||
if (cmd.ctx.ignoreScripts) return
|
||||
const scripts = cmd.pkg.pkg && cmd.pkg.pkg.scripts || {}
|
||||
if (scripts.postinstall) npmRun('postinstall')
|
||||
if (!isProductionInstall && scripts.prepublish) npmRun('prepublish')
|
||||
|
||||
Reference in New Issue
Block a user