Skip to content

Commit

Permalink
Use rimraf instead of rm -rf
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKVal committed Apr 8, 2015
1 parent 2f0ba3e commit 262868f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/dist/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion tools/lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

0 comments on commit 262868f

Please sign in to comment.