fix: use posix for joining paths

Signed-off-by: David Weber <david.weber@w3tec.ch>
This commit is contained in:
David Weber
2023-03-18 11:23:11 +01:00
parent 0182d61b98
commit b9839d7135
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Use `posix` for joining paths instead of platform dependent joins.
+2 -1
View File
@@ -15,7 +15,7 @@
*/
import fs from 'fs-extra';
import { resolve as resolvePath, join as joinPath } from 'path';
import { resolve as resolvePath, posix as posixPath } from 'path';
import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import ModuleScopePlugin from 'react-dev-utils/ModuleScopePlugin';
@@ -39,6 +39,7 @@ 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 {