cli: add backend dev entry point
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/cli': patch
|
||||
---
|
||||
|
||||
Added support for the `dev/index` entry point for backend plugins and modules.
|
||||
@@ -26,7 +26,17 @@ interface StartBackendOptions {
|
||||
}
|
||||
|
||||
export async function startBackend(options: StartBackendOptions) {
|
||||
if (process.env.EXPERIMENTAL_BACKEND_START) {
|
||||
const hasDev = await fs.pathExists(paths.resolveTarget('dev'));
|
||||
if (hasDev) {
|
||||
const waitForExit = await startBackendExperimental({
|
||||
entry: 'dev/index',
|
||||
checksEnabled: false, // not supported
|
||||
inspectEnabled: options.inspectEnabled,
|
||||
inspectBrkEnabled: options.inspectBrkEnabled,
|
||||
});
|
||||
|
||||
await waitForExit();
|
||||
} else if (process.env.EXPERIMENTAL_BACKEND_START) {
|
||||
const waitForExit = await startBackendExperimental({
|
||||
entry: 'src/index',
|
||||
checksEnabled: false, // not supported
|
||||
|
||||
Reference in New Issue
Block a user