chore: include bui version and rename folder to app

Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
benjdlambert
2025-07-21 11:04:15 +02:00
parent 46ea29c5a5
commit f47c62993d
2 changed files with 10 additions and 1 deletions
+9 -1
View File
@@ -70,7 +70,7 @@ export default async (opts: OptionValues): Promise<void> => {
? paths.resolveTarget(opts.templatePath)
: paths.resolveOwn('templates/default-app');
// If using the default template, filter out `packages/app` when the `--next` flag
// If using the default template, filter out `packages/app` when the `--` flag
// is used or `packages/app-next` when its not used.
const excludedDirs = !opts.templatePath
? [opts.experimentalFrontend ? 'packages/app/' : 'packages/app-next/']
@@ -128,6 +128,14 @@ export default async (opts: OptionValues): Promise<void> => {
await moveAppTask(tempDir, appDir, answers.name);
}
if (opts.next) {
// we need to rename the app-next directory back to the app directory which got excluded
await fs.rename(
resolvePath(appDir, 'app-next'),
resolvePath(appDir, 'app'),
);
}
const fetchedYarnLockSeed = await fetchYarnLockSeedTask(appDir);
if (gitConfig) {
@@ -17,6 +17,7 @@
"@backstage/frontend-defaults": "^{{version '@backstage/frontend-defaults'}}",
"@backstage/frontend-plugin-api": "^{{version '@backstage/frontend-plugin-api'}}",
"@backstage/plugin-catalog": "^{{version '@backstage/plugin-catalog'}}",
"@backstage/ui": "^{{version '@backstage/ui'}}",
"react": "^18.0.2",
"react-dom": "^18.0.2",
"react-router": "^6.3.0",