Merge pull request #26883 from backstage/rugvip/trim-next

cli: add support for trimming next entry
This commit is contained in:
Patrik Oldsberg
2024-09-30 10:24:58 +02:00
committed by GitHub
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Added support for a new experimental `EXPERIMENTAL_TRIM_NEXT_ENTRY` flag which removes any `./next` entry points present in packages when building and publishing.
+5
View File
@@ -67,6 +67,11 @@ export function readEntryPoints(pkg: BackstagePackageJson): Array<EntryPoint> {
);
}
// Setting the EXPERIMENTAL_TRIM_NEXT_ENTRY flag will remove any `./next` entry points
if (process.env.EXPERIMENTAL_TRIM_NEXT_ENTRY && mount === './next') {
continue;
}
entryPoints.push(parseEntryPoint(mount, path));
}