@@ -5,7 +5,7 @@ import type { WorkspaceNodeModulesArchitectHost } from "@angular-devkit/architec
5
5
import { AngularI18nConfig } from "./interfaces" ;
6
6
import { relativeRequire , validateLocales } from "../utils" ;
7
7
import { FirebaseError } from "../../error" ;
8
- import { join } from "path" ;
8
+ import { join , posix , sep } from "path" ;
9
9
import { BUILD_TARGET_PURPOSE } from "../interfaces" ;
10
10
import { AssertionError } from "assert" ;
11
11
import { assertIsString } from "../../utils" ;
@@ -420,7 +420,9 @@ export async function getServerConfig(sourceDir: string, configuration: string)
420
420
}
421
421
const browserTargetOptions = await architectHost . getOptionsForTarget ( buildOrBrowserTarget ) ;
422
422
assertIsString ( browserTargetOptions ?. outputPath ) ;
423
- const browserOutputPath = join ( browserTargetOptions . outputPath , buildTarget ? "browser" : "" ) ;
423
+ const browserOutputPath = join ( browserTargetOptions . outputPath , buildTarget ? "browser" : "" )
424
+ . split ( sep )
425
+ . join ( posix . sep ) ;
424
426
const packageJson = JSON . parse ( await host . readFile ( join ( sourceDir , "package.json" ) ) ) ;
425
427
426
428
if ( ! ssr ) {
@@ -449,7 +451,9 @@ export async function getServerConfig(sourceDir: string, configuration: string)
449
451
) ;
450
452
const serverTargetOptions = await architectHost . getOptionsForTarget ( buildOrServerTarget ) ;
451
453
assertIsString ( serverTargetOptions ?. outputPath ) ;
452
- const serverOutputPath = join ( serverTargetOptions . outputPath , buildTarget ? "server" : "" ) ;
454
+ const serverOutputPath = join ( serverTargetOptions . outputPath , buildTarget ? "server" : "" )
455
+ . split ( sep )
456
+ . join ( posix . sep ) ;
453
457
if ( serverLocales && ! defaultLocale ) {
454
458
throw new FirebaseError (
455
459
"It's required that your source locale to be one of the localize options"
0 commit comments