mirror of
https://github.com/typicode/json-server.git
synced 2025-07-28 04:32:24 +08:00
Fix 0.12 tests
This commit is contained in:
@ -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",
|
||||
|
@ -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]
|
||||
})
|
||||
|
Reference in New Issue
Block a user