@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
|
-
|
|
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
package/package.json
CHANGED