packages/bsb-js/index.js
function runBuild(cwd /*: string */) /*: Promise<string> */ {
  return new Promise((resolve, reject) => {
    exec(bsb, {maxBuffer: Infinity, cwd}, (err, stdout, stderr) => {
      const output = `${stdout.toString()}\n${stderr.toString()}`
      if (err) {
        reject(output)
      } else {
        resolve(output)
      }
    })
  })
}
function runBuild(cwd /*: string */) /*: Promise<string> */ {
  return new Promise((resolve, reject) => {
    exec(bsb, {maxBuffer: Infinity, cwd}, (err, stdout, stderr) => {
      const output = `${stdout.toString()}\n${stderr.toString()}`
      if (err) {
        reject(output)
      } else {
        resolve(output)
      }
    })
  })
}
function runBuild ( cwd /*: string */ ) /*: Promise<string> */ { return new Promise ( ( resolve , reject ) => { exec ( bsb , { maxBuffer : Infinity , cwd } , ( err , stdout , stderr ) => { const output = ` ${ stdout . toString ( ) } \n ${ stderr . toString ( ) } ` if ( err ) { reject ( output ) } else { resolve ( output ) } } ) } ) }
Runs `bsb` async
Runs bsb async