diff --git a/bin/postinstall.js b/bin/postinstall.js deleted file mode 100755 index 34c8194d..00000000 --- a/bin/postinstall.js +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env node - -function main() { - if (process.env.SUPPRESS_SUPPORT || process.env.OPENCOLLECTIVE_HIDE || process.env.CI) { - return; - } - - const message = '\u001b[32mLove nodemon? You can now support the project via the open collective:\u001b[22m\u001b[39m\n > \u001b[96m\u001b[1mhttps://opencollective.com/nodemon/donate\u001b[0m\n'; - - try { - const Configstore = require('configstore'); - const pkg = require(__dirname + '/../package.json'); - const now = Date.now(); - - var week = 1000 * 60 * 60 * 24 * 7; - - // create a Configstore instance with an unique ID e.g. - // Package name and optionally some default values - const conf = new Configstore(pkg.name); - const last = conf.get('lastCheck'); - - if (!last || now - week > last) { - console.log(message); - conf.set('lastCheck', now); - } - } catch (e) { - console.log(message); - } -} - -main(); diff --git a/package.json b/package.json index b22d7dfa..1bf36940 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,6 @@ "commitmsg": "commitlint -e", "coverage": "istanbul cover _mocha -- --timeout 30000 --ui bdd --reporter list test/**/*.test.js", "lint": "eslint lib/**/*.js", - ":spec": "node_modules/.bin/mocha --timeout 30000 --ui bdd test/**/*.test.js", "test": "npm run lint && npm run spec", "spec": "for FILE in test/**/*.test.js; do echo $FILE; TEST=1 mocha --exit --timeout 30000 $FILE; if [ $? -ne 0 ]; then exit 1; fi; sleep 1; done", "postspec": "npm run clean", @@ -40,8 +39,7 @@ "web": "node web", "semantic-release": "semantic-release", "prepush": "npm run lint", - "killall": "ps auxww | grep node | grep -v grep | awk '{ print $2 }' | xargs kill -9", - "postinstall": "node bin/postinstall || exit 0" + "killall": "ps auxww | grep node | grep -v grep | awk '{ print $2 }' | xargs kill -9" }, "devDependencies": { "@commitlint/cli": "^11.0.0",