mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 00:14:18 +00:00
[improvement] build-lib when task fail (#4046)
This commit is contained in:
@@ -21,6 +21,10 @@ tasks.forEach(task => {
|
||||
|
||||
const interactive = new Signale({ interactive: true });
|
||||
interactive.pending(task);
|
||||
shell.exec(`${task} --silent`);
|
||||
interactive.success(task);
|
||||
const result = shell.exec(`${task} --silent`);
|
||||
if (result.code !== 0) {
|
||||
interactive.error(task);
|
||||
} else {
|
||||
interactive.success(task);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user