Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
refactor cp.spawnSync
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphtheninja committed Sep 21, 2018
1 parent eaa42fc commit c16988f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/rebuild-all.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('path')
const rimraf = require('rimraf')
const mkdirp = require('mkdirp')
const cp = require('child_process')
const spawnSync = require('child_process').spawnSync

const coreBuildDir = path.resolve(__dirname, '../deltachat-core/builddir')
console.log(`>> Removing ${coreBuildDir}`)
Expand All @@ -11,7 +11,7 @@ console.log(`>> Creating ${coreBuildDir}`)
mkdirp.sync(coreBuildDir)

console.log('>> meson')
cp.spawnSync('meson', [
spawnSync('meson', [
'--default-library=static',
'--wrap-mode=forcefallback'
], {
Expand All @@ -20,7 +20,7 @@ cp.spawnSync('meson', [
})

console.log('>> ninja')
cp.spawnSync('ninja', [ '-v' ], {
spawnSync('ninja', [ '-v' ], {
cwd: coreBuildDir,
stdio: 'inherit'
})
Expand All @@ -30,7 +30,7 @@ console.log(`>> Removing ${buildDir}`)
rimraf.sync(buildDir)

console.log('>> Rebuilding bindings')
cp.spawnSync('npm', [ 'run', 'rebuild' ], {
spawnSync('npm', [ 'run', 'rebuild' ], {
cwd: path.resolve(__dirname, '..'),
stdio: 'inherit'
})

0 comments on commit c16988f

Please sign in to comment.