@adonisjs/assembler 8.0.0-next.11 → 8.0.0-next.12

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.
@@ -178,7 +178,7 @@ var IndexGeneratorSource = class {
178
178
  * content based on configuration, and writes it to disk.
179
179
  */
180
180
  #generateOutput = throttle(async () => {
181
- const buffer = new FileBuffer();
181
+ const buffer = new FileBuffer().eol(true);
182
182
  if (this.#config.as === "barrelFile") {
183
183
  this.#asBarrelFile(
184
184
  this.#vfs,
@@ -312,6 +312,11 @@ var IndexGeneratorSource = class {
312
312
  return `() => import('${importGenerator(filePath)}')`;
313
313
  }
314
314
  });
315
+ const treeLength = Object.keys(tree).length;
316
+ if (!treeLength) {
317
+ buffer.write(`export const ${exportName} = {}`);
318
+ return;
319
+ }
315
320
  if (useEagerImports) {
316
321
  buffer.writeLine(importsBuffer);
317
322
  }
package/build/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  FileBuffer,
3
3
  IndexGenerator
4
- } from "./chunk-FSSS6GZ2.js";
4
+ } from "./chunk-DJW65ZF7.js";
5
5
  import {
6
6
  VirtualFileSystem,
7
7
  copyFiles,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  IndexGenerator
3
- } from "../../chunk-FSSS6GZ2.js";
3
+ } from "../../chunk-DJW65ZF7.js";
4
4
  import "../../chunk-MVIHDM7A.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.11",
4
+ "version": "8.0.0-next.12",
5
5
  "engines": {
6
6
  "node": ">=24.0.0"
7
7
  },
@@ -49,11 +49,11 @@
49
49
  "@japa/snapshot": "^2.0.9",
50
50
  "@poppinss/ts-exec": "^1.4.1",
51
51
  "@release-it/conventional-changelog": "^10.0.1",
52
- "@types/node": "^24.5.2",
52
+ "@types/node": "^24.6.0",
53
53
  "@types/picomatch": "^4.0.2",
54
54
  "@types/pretty-hrtime": "^1.0.3",
55
55
  "c8": "^10.1.3",
56
- "cross-env": "^10.0.0",
56
+ "cross-env": "^10.1.0",
57
57
  "del-cli": "^7.0.0",
58
58
  "eslint": "^9.36.0",
59
59
  "hot-hook": "^0.4.1-next.0",