@adonisjs/assembler 8.0.0-next.20 → 8.0.0-next.21

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.
@@ -252,8 +252,11 @@ var IndexGeneratorSource = class {
252
252
  */
253
253
  #createBarrelFileKeyGenerator(config) {
254
254
  return function(key) {
255
- const paths = key.split("/");
255
+ let paths = key.split("/");
256
256
  let baseName = new StringBuilder(paths.pop());
257
+ if (config.skipSegments?.length) {
258
+ paths = paths.filter((p) => !config.skipSegments.includes(p));
259
+ }
257
260
  if (config.computeBaseName) {
258
261
  baseName = config.computeBaseName(baseName);
259
262
  } else {
package/build/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  FileBuffer,
3
3
  IndexGenerator
4
- } from "./chunk-4452KFDQ.js";
4
+ } from "./chunk-NR7VMFWO.js";
5
5
  import {
6
6
  RoutesScanner
7
7
  } from "./chunk-NAASGAFO.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  IndexGenerator
3
- } from "../../chunk-4452KFDQ.js";
3
+ } from "../../chunk-NR7VMFWO.js";
4
4
  import "../../chunk-JFBQ4OEM.js";
5
5
  export {
6
6
  IndexGenerator
@@ -38,6 +38,7 @@ export type IndexGeneratorSourceConfig = ({
38
38
  glob?: string[];
39
39
  importAlias?: string;
40
40
  removeSuffix?: string;
41
+ skipSegments?: string[];
41
42
  };
42
43
  /**
43
44
  * Marks a given optional property as required
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.20",
4
+ "version": "8.0.0-next.21",
5
5
  "engines": {
6
6
  "node": ">=24.0.0"
7
7
  },