Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
fix(lifecycle): defer to lifecycle’s internal logic as to whether or …
Browse files Browse the repository at this point in the history
…not to execute a run-script (#42)

Refs: npm/npm#19258
  • Loading branch information
mikesherov authored and zkat committed Mar 13, 2018
1 parent 401d466 commit 7f27a52
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,7 @@ class Installer {

runScript (stage, pkg, pkgPath) {
const start = Date.now()
if (
!this.config.get('ignore-scripts') && pkg.scripts && pkg.scripts[stage]
) {
if (!this.config.get('ignore-scripts')) {
// TODO(mikesherov): remove pkg._id when npm-lifecycle no longer relies on it
pkg._id = pkg.name + '@' + pkg.version
const opts = this.config.toLifecycle()
Expand Down

0 comments on commit 7f27a52

Please sign in to comment.