From 262868f2feebe0cff352888c2d15a73ddbb3ed2b Mon Sep 17 00:00:00 2001 From: AlexKVal Date: Wed, 8 Apr 2015 17:41:56 +0300 Subject: [PATCH] Use rimraf instead of `rm -rf` --- tools/dist/build.js | 2 +- tools/lib/build.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)); }