mirror of
https://github.com/typicode/json-server.git
synced 2025-07-28 12:43:18 +08:00
Fix 0.12 tests
This commit is contained in:
@ -30,7 +30,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-cli": "^6.10.1",
|
"babel-cli": "^6.10.1",
|
||||||
"babel-preset-es2015": "^6.9.0",
|
"babel-preset-es2015": "^6.16.0",
|
||||||
"babel-register": "^6.16.3",
|
"babel-register": "^6.16.3",
|
||||||
"cross-env": "^1.0.8",
|
"cross-env": "^1.0.8",
|
||||||
"husky": "^0.11.4",
|
"husky": "^0.11.4",
|
||||||
|
@ -19,7 +19,7 @@ const middlewareFiles = {
|
|||||||
|
|
||||||
function cli (args) {
|
function cli (args) {
|
||||||
const bin = path.join(__dirname, '../../src/cli/bin')
|
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,
|
cwd: __dirname,
|
||||||
stdio: ['pipe', process.stdout, process.stderr]
|
stdio: ['pipe', process.stdout, process.stderr]
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user