Skip to content

Commit

Permalink
Merge pull request #21 from zhiyan/master
Browse files Browse the repository at this point in the history
Fixes #20, #5
  • Loading branch information
pod4g authored Jun 8, 2018
2 parents ad18ad8 + 7ead414 commit 0de4d28
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 10 additions & 0 deletions bin/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env node
const path = require('path')
const fork = require('child_process').fork
const argv = process.argv.slice(2)

fork(path.resolve(__dirname, '../src/index.js'), argv, {
env: {
NODE_NO_WARNINGS: 1
}
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"authors": "git log --format='%aN <%aE>' | sort -u"
},
"bin": {
"hiper": "./src/index.js"
"hiper": "./bin/index.js"
},
"license": "MIT",
"dependencies": {
Expand Down
2 changes: 0 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#! /usr/bin/env node --no-warnings

const semver = require('semver')
const chalk = require('chalk')
const requiredNodeVersion = require('../package.json').engines.node
Expand Down

0 comments on commit 0de4d28

Please sign in to comment.