diff --git a/package-lock.json b/package-lock.json index 4fc2c7d..734815e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6099,6 +6099,14 @@ "integrity": "sha512-LmeoohTpp/K4UiyQCwuGWlONxXamGzCMtFxLq4W1nZVGIQLYvMCJx3yAF9qyyuFpflABI9yVdtJAqbihOsCsJQ==", "dev": true }, + "pre-push": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/pre-push/-/pre-push-0.1.1.tgz", + "integrity": "sha1-Kip5gn0kOnbJEImJescH9F5xaqw=", + "requires": { + "shelljs": "0.3.x" + } + }, "pretty-hrtime": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz", @@ -6736,6 +6744,11 @@ } } }, + "shelljs": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz", + "integrity": "sha1-NZbmMHp4FUT1kfN9phg2DzHbV7E=" + }, "signal-exit": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", diff --git a/package.json b/package.json index 971be12..53ca5d0 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "dev": "gulp --env=development", "release": "standard-version" }, + "pre-push": "release", "author": "cgj", "license": "ISC", "devDependencies": { @@ -35,6 +36,7 @@ "last 2 versions" ], "dependencies": { + "pre-push": "^0.1.1", "standard-version": "^7.0.1" } }