Skip to content

Commit deb1f42

Browse files
marioneblLinusU
authored andcommitted
chore: avoid build run-scripts on local npm install (#255)
* chore: avoid build run-scripts on local npm install * style: avoid unnecessary echo
1 parent d4af33a commit deb1f42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"commit": "node bin/git-cz",
99
"build": "babel src --out-dir dist",
1010
"build:watch": "babel --watch src --out-dir dist",
11-
"prepublish": "npm run build",
11+
"prepublish": "not-in-install && npm run build || true",
1212
"report-coverage": "nyc report --reporter=lcov | codecov",
1313
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
1414
"start": "npm run test:watch",
@@ -54,6 +54,7 @@
5454
"chai": "3.5.0",
5555
"codecov.io": "0.1.6",
5656
"ghooks": "1.2.4",
57+
"in-publish": "^2.0.0",
5758
"mocha": "2.5.3",
5859
"node-uuid": "1.4.7",
5960
"nodemon": "1.9.2",

0 commit comments

Comments
 (0)