Skip to content

Commit

Permalink
fix(bin): added --harmony option wrapper scripts(cross-platform), fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Mar 14, 2016
1 parent 69c09e8 commit d362d53
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 11 deletions.
3 changes: 3 additions & 0 deletions bin/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

exec /usr/bin/env node --harmony "$(readlink -e $0).js" "$@"
3 changes: 3 additions & 0 deletions bin/commit-wizard
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

exec /usr/bin/env node --harmony "$(readlink -e $0).js" "$@"
3 changes: 3 additions & 0 deletions bin/post-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

exec /usr/bin/env node --harmony "$(readlink -e $0).js" "$@"
3 changes: 3 additions & 0 deletions bin/post-merge
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

exec /usr/bin/env node --harmony "$(readlink -e $0).js" "$@"
3 changes: 3 additions & 0 deletions bin/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

exec /usr/bin/env node --harmony "$(readlink -e $0).js" "$@"
3 changes: 3 additions & 0 deletions bin/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

exec /usr/bin/env node --harmony "$(readlink -e $0).js" "$@"
2 changes: 1 addition & 1 deletion hooks/commit-msg
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

/usr/bin/env node --harmony ./node_modules/.bin/commit-msg "$@"
./node_modules/.bin/commit-msg "$@"
2 changes: 1 addition & 1 deletion hooks/post-commit
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

/usr/bin/env node --harmony ./node_modules/.bin/post-commit "$@"
./node_modules/.bin/post-commit "$@"
2 changes: 1 addition & 1 deletion hooks/post-merge
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

/usr/bin/env node --harmony ./node_modules/.bin/post-merge "$@"
./node_modules/.bin/post-merge "$@"
2 changes: 1 addition & 1 deletion hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

/usr/bin/env node --harmony ./node_modules/.bin/pre-commit "$@"
./node_modules/.bin/pre-commit "$@"
2 changes: 1 addition & 1 deletion hooks/pre-push
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

/usr/bin/env node --harmony ./node_modules/.bin/pre-push "$@"
./node_modules/.bin/pre-push "$@"
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"version": "0.0.0-semantic-release",
"author": "Arnout Kazemier <[email protected]>",
"bin": {
"commit-msg": "bin/commit-msg.js",
"commit-wizard": "bin/commit-wizard.js",
"post-commit": "bin/post-commit.js",
"post-merge": "bin/post-merge.js",
"pre-commit": "bin/pre-commit.js",
"pre-push": "bin/pre-push.js"
"commit-msg": "bin/commit-msg",
"commit-wizard": "bin/commit-wizard",
"post-commit": "bin/post-commit",
"post-merge": "bin/post-merge",
"pre-commit": "bin/pre-commit",
"pre-push": "bin/pre-push"
},
"bugs": {
"url": "https://github.com/bahmutov/pre-git/issues"
Expand Down

0 comments on commit d362d53

Please sign in to comment.