diff --git a/tools/dist/build.js b/tools/dist/build.js index 6a6f2f521d..e3a15536e3 100644 --- a/tools/dist/build.js +++ b/tools/dist/build.js @@ -8,7 +8,7 @@ const dist = path.join(repoRoot, 'dist'); export default function BuildDistributable() { console.log('Building: '.cyan + 'distributable'.green); - return exec(`rm -rf ${dist}`) + return exec(`rimraf ${dist}`) .then(() => Promise.all([ exec('webpack --bail'), exec('webpack --bail -p') diff --git a/tools/lib/build.js b/tools/lib/build.js index a1b6cec891..01adeb9164 100644 --- a/tools/lib/build.js +++ b/tools/lib/build.js @@ -10,7 +10,7 @@ const src = path.join(repoRoot, 'src'); export default function BuildCommonJs() { console.log('Building: '.cyan + 'npm module'.green); - return exec(`rm -rf ${lib}`) + return exec(`rimraf ${lib}`) .then(() => exec(`babel --optional es7.objectRestSpread ${src} --out-dir ${lib}`)) .then(() => console.log('Built: '.cyan + 'npm module'.green)); }