Skip to content

Commit 262868f

Browse files
committed
Use rimraf instead of rm -rf
1 parent 2f0ba3e commit 262868f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tools/dist/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const dist = path.join(repoRoot, 'dist');
88
export default function BuildDistributable() {
99
console.log('Building: '.cyan + 'distributable'.green);
1010

11-
return exec(`rm -rf ${dist}`)
11+
return exec(`rimraf ${dist}`)
1212
.then(() => Promise.all([
1313
exec('webpack --bail'),
1414
exec('webpack --bail -p')

tools/lib/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const src = path.join(repoRoot, 'src');
1010
export default function BuildCommonJs() {
1111
console.log('Building: '.cyan + 'npm module'.green);
1212

13-
return exec(`rm -rf ${lib}`)
13+
return exec(`rimraf ${lib}`)
1414
.then(() => exec(`babel --optional es7.objectRestSpread ${src} --out-dir ${lib}`))
1515
.then(() => console.log('Built: '.cyan + 'npm module'.green));
1616
}

0 commit comments

Comments
 (0)