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.
@@ -240,7 +240,13 @@ compile = async function() {
240
240
  process.exit(1);
241
241
  return;
242
242
  }
243
- setTimeout(async function() {
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
- return consola.success('Compilation completed successfully!');
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "milkee",
3
- "version": "2.4.3",
3
+ "version": "3.0.0",
4
4
  "description": "A simple CoffeeScript build tool with coffee.config.cjs",
5
5
  "main": "dist/main.js",
6
6
  "bin": {