Skip to content

Commit

Permalink
Added simple prepublish script, preventing publications with npm lowe…
Browse files Browse the repository at this point in the history
…r than 4 (which introduced support for prepare script)
  • Loading branch information
Andarist committed Aug 21, 2017
1 parent 6ed68a8 commit 8fbba3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"test:karma": "karma start test/karma.conf.js --single-run",
"test:nodom": "mocha test/no-dom-test.js",
"precommit": "npm test && lint-staged",
"prepublish": "test $(npm -v | tr . '\n' | head -n 1) -ge '4' || exit 1",
"prepare": "npm run build"
},
"devDependencies": {
Expand Down

0 comments on commit 8fbba3f

Please sign in to comment.