cli: tweak posix path fix

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-03-20 10:15:42 +01:00
parent b9839d7135
commit c611f57d78
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -39,7 +39,6 @@ import yn from 'yn';
import { readEntryPoints } from '../monorepo/entryPoints';
import { ExtendedPackage } from '../monorepo';
const joinPath = posixPath.join;
const BUILD_CACHE_ENV_VAR = 'BACKSTAGE_CLI_EXPERIMENTAL_BUILD_CACHE';
export function resolveBaseUrl(config: Config): URL {
@@ -237,7 +236,7 @@ export async function createBackendConfig(
const { packages } = await getPackages(cliPaths.targetDir);
const localPackageEntryPoints = packages.flatMap(p => {
const entryPoints = readEntryPoints((p as ExtendedPackage).packageJson);
return entryPoints.map(e => joinPath(p.packageJson.name, e.mount));
return entryPoints.map(e => posixPath.join(p.packageJson.name, e.mount));
});
const moduleDirs = packages.map(p => resolvePath(p.dir, 'node_modules'));
// See frontend config