Commit aed43793 authored by 叶飞's avatar 叶飞

fix: update release

parent 823809b4
......@@ -120,5 +120,8 @@
"webpack": false,
"running": false
}
]
],
"dependencies": {
"cross-spawn": "^7.0.3"
}
}
export default 'hello world 123';
export default 'hello world 1234';
const { spawn } = require('child_process');
const spawnWin = require('cross-spawn');
module.exports = function exec(command, args, opts) {
return new Promise((resolve, reject) => {
const child = spawn(command, args, Object.assign({ stdio: 'inherit', env: process.env }, opts));
const child = process.platform === 'win32' ? spawnWin(command, args, Object.assign({ stdio: 'inherit', env: process.env }, opts)): spawn(command, args, Object.assign({ stdio: 'inherit', env: process.env }, opts));
child.once('error', (err) => {
console.log(err);
reject(err);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment