Skip to content

Commit

Permalink
fix: avoid running dev-only npm scripts when installing this package
Browse files Browse the repository at this point in the history
The `install` script is also executed when consumers install Heimdall as a dependency, ie. `npm i @strv/heimdall`. Using `prepare` script we only ever run those commands when someone runs `npm install` while working directly on Heimdall.
  • Loading branch information
robertrossmann committed Nov 7, 2019
1 parent 66badfe commit e846dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
"url": "[email protected]:strvcom/heimdall.git"
},
"scripts": {
"install": "touch node_modules && make"
"prepare": "touch node_modules && make"
}
}

0 comments on commit e846dfc

Please sign in to comment.