mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
fix: stop ci if plugin client build failed (#5650)
This commit is contained in:
parent
e1e2880a06
commit
2617854965
@ -470,15 +470,15 @@ export async function buildPluginClient(cwd: string, userConfig: UserConfig, sou
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
compiler.run((err, stats) => {
|
||||
if (err) {
|
||||
reject(err);
|
||||
const compilationErrors = stats?.compilation.errors;
|
||||
const infos = stats.toString({
|
||||
colors: true,
|
||||
});
|
||||
if (err || compilationErrors?.length) {
|
||||
reject(err || infos);
|
||||
return;
|
||||
}
|
||||
console.log(
|
||||
stats.toString({
|
||||
colors: true,
|
||||
}),
|
||||
);
|
||||
console.log(infos);
|
||||
resolve(null);
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user