From eeb0d4439eff08e18e78a1502fa4a9f8a5100a3b Mon Sep 17 00:00:00 2001 From: RnbWd Date: Tue, 12 May 2015 16:10:22 -0700 Subject: [PATCH] updated scripts / .ignores --- npm/.gitignore | 1 - npm/.npmignore | 2 ++ npm/package.json | 7 ++++--- 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 npm/.npmignore diff --git a/npm/.gitignore b/npm/.gitignore index 07d41466bada..9ec0c37f1d7a 100644 --- a/npm/.gitignore +++ b/npm/.gitignore @@ -1,5 +1,4 @@ node_modules -*.zip dist path.txt .DS_Store diff --git a/npm/.npmignore b/npm/.npmignore new file mode 100644 index 000000000000..fe67adfa7c33 --- /dev/null +++ b/npm/.npmignore @@ -0,0 +1,2 @@ +dist/ +path.txt diff --git a/npm/package.json b/npm/package.json index b182c382691b..e190cf7782a1 100644 --- a/npm/package.json +++ b/npm/package.json @@ -7,9 +7,10 @@ "url": "https://github.com/mafintosh/electron-prebuilt" }, "scripts": { - "install": "node install.js", - "test": "tape test/*.js", - "cache-clean": "rimraf ~/.electron" + "cache-clean": "rm -rf ~/.electron && rm -rf dist", + "postinstall": "node install.js", + "pretest": "npm run cache-clean && node install.js", + "test": "tape test/*.js" }, "bin": { "electron": "cli.js"