@adonisjs/assembler 8.0.0-next.13 → 8.0.0-next.14

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.
@@ -325,15 +325,15 @@ var IndexGeneratorSource = class {
325
325
  buffer.dedent().write(`}`);
326
326
  }
327
327
  /**
328
- * Create a log action for tracking file generation progress
328
+ * Displays the log message after generating the index file
329
329
  *
330
330
  * @example
331
- * const action = this.#createLogAction()
331
+ * const startTime = process.hrtime()
332
332
  * // ... perform operations
333
- * action.displayDuration().succeeded()
333
+ * this.#logCreation(startTime)
334
334
  */
335
- #createLogAction() {
336
- return this.#cliLogger.action(`create ${this.#config.output}`);
335
+ #logCreation(startTime) {
336
+ this.#cliLogger.info(`created ${this.#config.output}`, { startTime });
337
337
  }
338
338
  /**
339
339
  * Add a file to the virtual file system and regenerate index if needed
@@ -347,9 +347,9 @@ var IndexGeneratorSource = class {
347
347
  const added = this.#vfs.add(filePath);
348
348
  if (added) {
349
349
  debug_default('file added, re-generating "%s" index', this.name);
350
- const action = this.#createLogAction();
350
+ const startTime = process.hrtime();
351
351
  await this.#generateOutput();
352
- action.displayDuration().succeeded();
352
+ this.#logCreation(startTime);
353
353
  }
354
354
  }
355
355
  /**
@@ -364,9 +364,9 @@ var IndexGeneratorSource = class {
364
364
  const removed = this.#vfs.remove(filePath);
365
365
  if (removed) {
366
366
  debug_default('file removed, re-generating "%s" index', this.name);
367
- const action = this.#createLogAction();
367
+ const startTime = process.hrtime();
368
368
  await this.#generateOutput();
369
- action.displayDuration().succeeded();
369
+ this.#logCreation(startTime);
370
370
  }
371
371
  }
372
372
  /**
@@ -376,10 +376,10 @@ var IndexGeneratorSource = class {
376
376
  * the configuration, and writes the generated index file to disk.
377
377
  */
378
378
  async generate() {
379
- const action = this.#createLogAction();
379
+ const startTime = process.hrtime();
380
380
  await this.#vfs.scan();
381
381
  await this.#generateOutput();
382
- action.displayDuration().succeeded();
382
+ this.#logCreation(startTime);
383
383
  }
384
384
  };
385
385
 
package/build/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  FileBuffer,
3
3
  IndexGenerator
4
- } from "./chunk-6MUZXYZE.js";
4
+ } from "./chunk-TWCIFDZF.js";
5
5
  import {
6
6
  VirtualFileSystem,
7
7
  copyFiles,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  IndexGenerator
3
- } from "../../chunk-6MUZXYZE.js";
3
+ } from "../../chunk-TWCIFDZF.js";
4
4
  import "../../chunk-7ANGUQDV.js";
5
5
  export {
6
6
  IndexGenerator
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adonisjs/assembler",
3
3
  "description": "Provides utilities to run AdonisJS development server and build project for production",
4
- "version": "8.0.0-next.13",
4
+ "version": "8.0.0-next.14",
5
5
  "engines": {
6
6
  "node": ">=24.0.0"
7
7
  },
@@ -55,7 +55,7 @@
55
55
  "c8": "^10.1.3",
56
56
  "cross-env": "^10.1.0",
57
57
  "del-cli": "^7.0.0",
58
- "eslint": "^9.36.0",
58
+ "eslint": "^9.37.0",
59
59
  "hot-hook": "^0.4.1-next.0",
60
60
  "p-event": "^7.0.0",
61
61
  "prettier": "^3.6.2",
@@ -67,8 +67,8 @@
67
67
  "dependencies": {
68
68
  "@adonisjs/env": "^7.0.0-next.1",
69
69
  "@antfu/install-pkg": "^1.1.0",
70
- "@ast-grep/napi": "^0.39.5",
71
- "@poppinss/cliui": "^6.4.4",
70
+ "@ast-grep/napi": "^0.39.6",
71
+ "@poppinss/cliui": "^6.5.0",
72
72
  "@poppinss/hooks": "^7.2.6",
73
73
  "@poppinss/utils": "^7.0.0-next.3",
74
74
  "chokidar": "^4.0.3",