Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: prefer not babel code in Node 8+ #13

Merged
merged 1 commit into from
Sep 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ script:
- npm run build
- npm run lint
- npm test
- npm run test:coverage
- if [[ $TRAVIS_NODE_VERSION = '8' ]]; then npm run test:coverage; fi

deploy:
provider: npm
Expand Down
8 changes: 7 additions & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/usr/bin/env node

require('../lib/cli')()
const semver = require('semver')

if (semver.satisfies(process.version, '>=8')) {
require('../src/cli')() // eslint-disable-line global-require
} else {
require('../lib/cli')() // eslint-disable-line global-require
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"lint-staged": "^4.2.1",
"markdownlint-cli": "^0.3.1",
"npm-run-all": "^4.1.1",
"semver": "^5.4.1",
"standard-version": "^4.2.0",
"yargs": "^9.0.1"
},
Expand Down