build: 清理异常
parent
05aa4955f4
commit
8aca3be4fc
|
@ -14,11 +14,16 @@ function main() {
|
||||||
exec('rimraf dist');
|
exec('rimraf dist');
|
||||||
|
|
||||||
consola.info('Rollup');
|
consola.info('Rollup');
|
||||||
exec(
|
try {
|
||||||
`rollup -c ${
|
exec(
|
||||||
watch ? '-w' : ''
|
`rollup -c ${
|
||||||
} --environment SOURCE_MAP:${sourceMap},DTS:${dts}`,
|
watch ? '-w' : ''
|
||||||
);
|
} --environment SOURCE_MAP:${sourceMap},DTS:${dts}`,
|
||||||
|
);
|
||||||
|
} catch {
|
||||||
|
consola.error('已退出');
|
||||||
|
process.exit();
|
||||||
|
}
|
||||||
|
|
||||||
console.info('\n');
|
console.info('\n');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue