Browse Source

added prune target to pre-commit to avoid npm weirdness

pull/1002/head
Stephen Hess 7 years ago
parent
commit
cc0200dcc9
  1. 4
      package.json

4
package.json

@ -19,7 +19,8 @@
"validate": "npm ls", "validate": "npm ls",
"semantic-release": "semantic-release pre && npm publish && semantic-release post", "semantic-release": "semantic-release pre && npm publish && semantic-release post",
"config": "node -e \"console.log(JSON.stringify(require( 'pelias-config' ).generate(require('./schema')), null, 2))\"", "config": "node -e \"console.log(JSON.stringify(require( 'pelias-config' ).generate(require('./schema')), null, 2))\"",
"check-dependencies": "node_modules/.bin/npm-check --production --ignore pelias-interpolation" "check-dependencies": "node_modules/.bin/npm-check --production --ignore pelias-interpolation",
"prune": "npm prune"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -87,6 +88,7 @@
}, },
"pre-commit": [ "pre-commit": [
"lint", "lint",
"prune",
"validate", "validate",
"test", "test",
"check-dependencies" "check-dependencies"

Loading…
Cancel
Save