Files
xen-orchestra/scripts/run
Julien Fontanet 11b1ff478e feat: use Yarn workspaces
Much faster installation which is very important for CI.

We'll see if it proves difficult for deps management.
2017-10-30 10:59:35 +01:00

21 lines
459 B
JavaScript
Executable File

#!/usr/bin/env node
const { fromEvent } = require('promise-toolbox')
const { spawn } = require('child_process')
const { getPackages } = require('./utils')
require('exec-promise')(([ command, ...args ]) =>
getPackages().forEach(({ dir, name }) => {
console.log('*', name)
return fromEvent(spawn(command, args, {
cwd: dir,
stdio: 'inherit'
}), 'exit').then(code => {
if (code !== 0) {
throw code
}
})
})
)