Fix 0.12 tests

This commit is contained in:
typicode
2016-10-12 23:14:53 +02:00
parent 20f8b93303
commit ad61997145
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@
},
"devDependencies": {
"babel-cli": "^6.10.1",
"babel-preset-es2015": "^6.9.0",
"babel-preset-es2015": "^6.16.0",
"babel-register": "^6.16.3",
"cross-env": "^1.0.8",
"husky": "^0.11.4",

View File

@ -19,7 +19,7 @@ const middlewareFiles = {
function cli (args) {
const bin = path.join(__dirname, '../../src/cli/bin')
return cp.spawn('node', [bin, '-p', PORT].concat(args), {
return cp.spawn('babel-node', ['--', bin, '-p', PORT].concat(args), {
cwd: __dirname,
stdio: ['pipe', process.stdout, process.stderr]
})