milkee 2.4.3 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/compile.js +10 -9
- package/package.json +1 -1
package/dist/commands/compile.js
CHANGED
|
@@ -240,7 +240,13 @@ compile = async function() {
|
|
|
240
240
|
process.exit(1);
|
|
241
241
|
return;
|
|
242
242
|
}
|
|
243
|
-
|
|
243
|
+
if (stdout) {
|
|
244
|
+
process.stdout.write(stdout);
|
|
245
|
+
}
|
|
246
|
+
if (stderr && !error) {
|
|
247
|
+
process.stderr.write(stderr);
|
|
248
|
+
}
|
|
249
|
+
return setTimeout(async function() {
|
|
244
250
|
if (milkeeOptions.refresh) {
|
|
245
251
|
clearBackups(backupFiles);
|
|
246
252
|
consola.success('Backup clearing completed!');
|
|
@@ -255,15 +261,10 @@ compile = async function() {
|
|
|
255
261
|
return;
|
|
256
262
|
}
|
|
257
263
|
}
|
|
258
|
-
|
|
264
|
+
consola.success('Compilation completed successfully!');
|
|
265
|
+
// Run plugins after all milkee.options are completed
|
|
266
|
+
return runPlugins(config, {...(config.options || {})}, stdout, stderr);
|
|
259
267
|
}, 500);
|
|
260
|
-
if (stdout) {
|
|
261
|
-
process.stdout.write(stdout);
|
|
262
|
-
}
|
|
263
|
-
if (stderr && !error) {
|
|
264
|
-
process.stderr.write(stderr);
|
|
265
|
-
}
|
|
266
|
-
return runPlugins(config, {...(config.options || {})}, stdout, stderr);
|
|
267
268
|
});
|
|
268
269
|
}
|
|
269
270
|
} catch (error1) {
|