Skip to content

Commit

Permalink
chore: remove --harmony flag
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Nov 15, 2017
1 parent 7b57911 commit 13d00bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
13 changes: 1 addition & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 13d00bd

Please sign in to comment.