Skip to content

Commit

Permalink
fix: support node4 on init
Browse files Browse the repository at this point in the history
  • Loading branch information
Dar Malovani committed May 23, 2017
1 parent d6643c8 commit 1ea8450
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = (args) => {
const dir = path.resolve(root, project);

return fs.readdir(root).then(files => {
if (!files.includes(project)) {
if (files.indexOf(project) === -1) {
throw new Error(`${project} is an invalid template name`);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"start": "node lib",
"dev": "node lib | ./node_modules/.bin/bunyan",
"es5ify": "babel --ignore=node_modules . -d .",
"test": "CI=1 tap -R spec test/**/*.test.js --timeout 60 2>&1",
"test": "CI=1 tap -R spec test/**/*.test.js --timeout 60",
"lint": "eslint cli/*.js lib/**/*.js",
"check-tests": "! grep 'test.only' test/**/*.test.js -n",
"cover": "tap test/**/*.test.js --timeout 60 --cov --coverage-report=lcov",
Expand Down

0 comments on commit 1ea8450

Please sign in to comment.