chore(scripts): coding style
This commit is contained in:
@@ -10,7 +10,7 @@ require('exec-promise')(([ command, ...args ]) =>
|
||||
console.log('*', name)
|
||||
return fromEvent(spawn(command, args, {
|
||||
cwd: dir,
|
||||
stdio: 'inherit'
|
||||
stdio: 'inherit',
|
||||
}), 'exit').then(code => {
|
||||
if (code !== 0) {
|
||||
throw code
|
||||
|
||||
@@ -20,10 +20,10 @@ require('exec-promise')(([ script ]) =>
|
||||
const spawnOpts = {
|
||||
cwd: dir,
|
||||
env: Object.assign({}, env, {
|
||||
PATH: `${dir}/node_modules/.bin${delimiter}${env.PATH}`
|
||||
PATH: `${dir}/node_modules/.bin${delimiter}${env.PATH}`,
|
||||
}),
|
||||
shell: true,
|
||||
stdio: 'inherit'
|
||||
stdio: 'inherit',
|
||||
}
|
||||
return forEach.call(
|
||||
[ `pre${script}`, script, `post${script}` ],
|
||||
|
||||
Reference in New Issue
Block a user