Skip to content

Commit e846dfc

Browse files
fix: avoid running dev-only npm scripts when installing this package
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.
1 parent 66badfe commit e846dfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@
4646
"url": "[email protected]:strvcom/heimdall.git"
4747
},
4848
"scripts": {
49-
"install": "touch node_modules && make"
49+
"prepare": "touch node_modules && make"
5050
}
5151
}

0 commit comments

Comments
 (0)