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

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.
@@ -3,7 +3,7 @@ import {
3
3
  debug_default,
4
4
  removeExtension,
5
5
  throttle
6
- } from "./chunk-MVIHDM7A.js";
6
+ } from "./chunk-7ANGUQDV.js";
7
7
 
8
8
  // src/index_generator/source.ts
9
9
  import string from "@poppinss/utils/string";
@@ -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
  }
@@ -53,6 +53,16 @@ function parseConfig(cwd, ts) {
53
53
  console.log(ts.formatDiagnosticsWithColorAndContext(parsedConfig.errors, compilerHost));
54
54
  return;
55
55
  }
56
+ if (parsedConfig.raw.include) {
57
+ parsedConfig.raw.include = parsedConfig.raw.include.map((includePath) => {
58
+ return includePath.replace("${configDir}/", "");
59
+ });
60
+ }
61
+ if (parsedConfig.raw.exclude) {
62
+ parsedConfig.raw.exclude = parsedConfig.raw.exclude.map((excludePath) => {
63
+ return excludePath.replace("${configDir}/", "");
64
+ });
65
+ }
56
66
  return parsedConfig;
57
67
  }
58
68
  function runNode(cwd, options) {
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-6MUZXYZE.js";
5
5
  import {
6
6
  VirtualFileSystem,
7
7
  copyFiles,
@@ -14,7 +14,7 @@ import {
14
14
  runNode,
15
15
  throttle,
16
16
  watch
17
- } from "./chunk-MVIHDM7A.js";
17
+ } from "./chunk-7ANGUQDV.js";
18
18
 
19
19
  // src/bundler.ts
20
20
  import dedent from "dedent";
@@ -10,7 +10,7 @@ import {
10
10
  VirtualFileSystem,
11
11
  debug_default,
12
12
  isRelative
13
- } from "../../../chunk-MVIHDM7A.js";
13
+ } from "../../../chunk-7ANGUQDV.js";
14
14
 
15
15
  // src/code_scanners/routes_scanner/main.ts
16
16
  import { cliui } from "@poppinss/cliui";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  IndexGenerator
3
- } from "../../chunk-FSSS6GZ2.js";
4
- import "../../chunk-MVIHDM7A.js";
3
+ } from "../../chunk-6MUZXYZE.js";
4
+ import "../../chunk-7ANGUQDV.js";
5
5
  export {
6
6
  IndexGenerator
7
7
  };
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.13",
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.2",
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",
@@ -62,7 +62,7 @@
62
62
  "release-it": "^19.0.5",
63
63
  "tsup": "^8.5.0",
64
64
  "typedoc": "^0.28.13",
65
- "typescript": "^5.9.2"
65
+ "typescript": "^5.9.3"
66
66
  },
67
67
  "dependencies": {
68
68
  "@adonisjs/env": "^7.0.0-next.1",