chore: include bui version and rename folder to app
Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user