From 13d00bdf83f6fb23685bbf468313873458bb8e5c Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Wed, 15 Nov 2017 11:53:19 -0500 Subject: [PATCH] chore: remove --harmony flag --- README.md | 13 +------------ package.json | 6 +++--- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index e66279c..7ae47e8 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Add to your project `npm install --save-dev ban-sensitive-files` ## Use -* From the command line `node --harmony node_modules/.bin/ban` when you have any staged files +* From the command line `node node_modules/.bin/ban` when you have any staged files to check their filenames. * From NPM script @@ -79,17 +79,6 @@ script: - npm test ``` -## Note about --harmony flag - -If the CI has troubles running `node --harmony` scripts, set the "ban" script to be the full -node command - -```json -"scripts": { - "ban": "node --harmony node_modules/.bin/ban" -} -``` - ## Use as a module You can use the checker from another module diff --git a/package.json b/package.json index 0108a3b..8ba8abf 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ }, "version": "0.0.0-semantic-release", "scripts": { - "test": "node --harmony node_modules/.bin/rocha src/*-spec.js", - "ban": "node --harmony bin/ban.js", + "test": "node node_modules/.bin/rocha src/*-spec.js", + "ban": "node bin/ban.js", "commit": "git-issues && commit-wizard", "issues": "git-issues", "semantic-release": "semantic-release pre && npm publish && semantic-release post", @@ -57,7 +57,7 @@ "commit-msg": "simple", "pre-commit": [ "npm run lint", - "node --harmony bin/ban.js" + "node bin/ban.js" ], "pre-push": [ "npm test",