package.json scripts: use NodeJS instead of unix commands

This commit is contained in:
Alice Gaudon 2021-03-24 18:49:34 +01:00
parent 29fa5f4e38
commit 59067e49fe
1 changed files with 2 additions and 0 deletions

View File

@ -1,7 +1,9 @@
const fs = require('fs');
[
'build',
'dist',
'public',
].forEach(file => {
if (fs.existsSync(file)) {
console.log('Cleaning', file, '...');