config-loader resolve config from cwd

Signed-off-by: Jacob Bolda <me@jacobbolda.com>
This commit is contained in:
Jacob Bolda
2021-05-21 17:34:43 -05:00
parent f681f408d4
commit 2cf98d279a
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/config-loader': patch
---
Resolve the path to app-config.yaml from the current working directory. This will allow use of `yarn link` or running the CLI in other directories and improve the experience for local backstage development.
@@ -124,7 +124,9 @@ export async function collectConfigSchemas(
);
}
await Promise.all(packageNames.map(name => processItem({ name })));
await Promise.all(
packageNames.map(name => processItem({ name, parentPath: currentDir })),
);
const tsSchemas = compileTsSchemas(tsSchemaPaths);