cli: add experimental warning for auth entry point build

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-01-22 13:47:32 +01:00
parent e7316e76fc
commit 9b7c6c8dd5
3 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
'@backstage/cli': patch
---
Add support for optional `auth` app entry point.
Add experimental support for optional `auth` app entry point.
+5
View File
@@ -66,6 +66,11 @@ export async function buildBundle(options: BuildOptions) {
dist: 'dist/auth',
});
if (authPaths) {
console.log(
chalk.yellow(
`⚠️ WARNING: The app /auth entry point is an experimental feature that may receive immediate breaking changes.`,
),
);
configs.push(
await createConfig(authPaths, {
...commonConfigOptions,
+7
View File
@@ -207,6 +207,13 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
entry: 'src/auth',
dist: 'dist/auth',
});
if (authPaths) {
console.log(
chalk.yellow(
`⚠️ WARNING: The app /auth entry point is an experimental feature that may receive immediate breaking changes.`,
),
);
}
const compiler = authPaths
? webpack([
config,