From 0b1d264fc840fbda7a248c6a6f93158456ce5c41 Mon Sep 17 00:00:00 2001 From: Zeke Sikelianos Date: Wed, 12 Jul 2017 10:18:40 -0700 Subject: [PATCH] check for secrets before git push and npm pack --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 2850b84d27a6..c0e9d51ce78c 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,11 @@ "devDependencies": { "asar": "^0.11.0", "browserify": "^13.1.0", + "check-for-leaks": "^1.0.2", "electabul": "~0.0.4", "electron-docs-linter": "^2.3.3", "electron-typescript-definitions": "^1.2.7", + "husky": "^0.14.3", "request": "^2.68.0", "standard": "^8.4.0", "standard-markdown": "^4.0.0" @@ -41,6 +43,8 @@ "create-api-json": "electron-docs-linter docs --outfile=out/electron-api.json --version=$npm_package_version", "create-typescript-definitions": "npm run create-api-json && electron-typescript-definitions --in=out/electron-api.json --out=out/electron.d.ts", "preinstall": "node -e 'process.exit(0)'", + "prepack": "check-for-leaks", + "prepush": "check-for-leaks", "release": "./script/upload.py -p", "repl": "python ./script/start.py --interactive", "start": "python ./script/start.py",