From cc0200dcc914dcd98a8bed9baa83b0fbed7df8db Mon Sep 17 00:00:00 2001 From: Stephen Hess Date: Mon, 11 Sep 2017 12:07:57 -0400 Subject: [PATCH] added prune target to pre-commit to avoid npm weirdness --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a73785a4..cf4b48cd 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "validate": "npm ls", "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))\"", - "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": { "type": "git", @@ -87,6 +88,7 @@ }, "pre-commit": [ "lint", + "prune", "validate", "test", "check-dependencies"