Skip to content

Commit 9bac7be

Browse files
authored
use path join (#185)
1 parent 168b03c commit 9bac7be

File tree

2 files changed

+3
-2
lines changed
  • packages/@apphosting

2 files changed

+3
-2
lines changed

packages/@apphosting/adapter-angular/src/bin/build.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
checkMonorepoBuildConditions,
88
validateOutputDirectory,
99
} from "../utils.js";
10+
import { join } from "path";
1011

1112
const root = process.cwd();
1213

@@ -22,7 +23,7 @@ let projectRoot = root;
2223
// N.B. We don't want to change directories for monorepo builds, so that the build process can
2324
// locate necessary files outside the project directory (e.g. at the root).
2425
if (process.env.FIREBASE_APP_DIRECTORY && !project) {
25-
projectRoot = projectRoot.concat("/", process.env.FIREBASE_APP_DIRECTORY);
26+
projectRoot = join(root, process.env.FIREBASE_APP_DIRECTORY);
2627
}
2728

2829
// Determine which command to run the build

packages/@apphosting/adapter-nextjs/src/bin/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const root = process.cwd();
1313

1414
let projectRoot = root;
1515
if (process.env.FIREBASE_APP_DIRECTORY) {
16-
projectRoot = projectRoot.concat("/", process.env.FIREBASE_APP_DIRECTORY);
16+
projectRoot = join(root, process.env.FIREBASE_APP_DIRECTORY);
1717
}
1818

1919
// Parse args to pass to the build command

0 commit comments

Comments
 (0)