Skip to content

Commit 6836b4d

Browse files
committed
fix(schematics): deploy - fix path to main.js (angular#3098)
1 parent 9337c7d commit 6836b4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/schematics/deploy/actions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,8 @@ export const deployToCloudRun = async (
314314
fsHost.copySync(staticOut, newStaticOut);
315315
fsHost.copySync(serverOut, newServerOut);
316316

317-
const packageJson = getPackageJson(context, workspaceRoot, options, join(serverBuildOptions.outputPath, 'main.js'));
317+
// Target runtime is Linux based.
318+
const packageJson = getPackageJson(context, workspaceRoot, options, [serverBuildOptions.outputPath, 'main.js'].join('/'));
318319
const nodeVersion = packageJson.engines.node;
319320

320321
if (!satisfies(process.versions.node, nodeVersion.toString())) {

0 commit comments

Comments
 (0)