mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
添加del
This commit is contained in:
1 parent
b7565cae54
commit
efd82ab889
4 files changed
+17
-10
No files matched your search
+13
-7
@@ -1,5 +1,7 @@
|
||||
const path = require('path');
|
||||
const inquirer = require('inquirer');
|
||||
const rollup = require('rollup');
|
||||
const del = require('del');
|
||||
const logger = require('./logger');
|
||||
const projects = require('./getProjects')();
|
||||
const creatRollupConfig = require('./creatRollupConfig');
|
||||
@@ -27,13 +29,17 @@ if (isBuildAll) {
|
||||
bundles.push(build(projectPath));
|
||||
});
|
||||
|
||||
Promise.all(bundles)
|
||||
.then(() => {
|
||||
logger.success('----finished building all packages----');
|
||||
})
|
||||
.catch(err => {
|
||||
logger.fatal(err);
|
||||
});
|
||||
const dist = path.join(process.cwd(), 'dist');
|
||||
del(dist).then(() => {
|
||||
logger.success(`----Delete directory successfully: ${dist}----`);
|
||||
Promise.all(bundles)
|
||||
.then(() => {
|
||||
logger.success('----finished building all packages----');
|
||||
})
|
||||
.catch(err => {
|
||||
logger.fatal(err);
|
||||
});
|
||||
});
|
||||
} else {
|
||||
inquirer
|
||||
.prompt([
|
||||
|
||||
Reference in new issue
Block a user