Skip to content

Commit d3e0430

Browse files
dmytrorykunfacebook-github-bot
authored andcommitted
Fix output path for generated artifacts (#45165)
Summary: Pull Request resolved: #45165 This is a fix for #45112 This diff changes the codegen so that the output path is computed relative to project root (or `path` if provided) instead of current working directory. Changelog: [General][Fixed] - Codegen computes output path relative to project root instead of current working directory. Reviewed By: fkgozali Differential Revision: D59009821 fbshipit-source-id: 3a138a3508fc239c8600b8c9f242f1c665f8e3c0
1 parent b9ec0e5 commit d3e0430

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/scripts/codegen/generate-artifacts-executor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ function computeOutputPath(projectRoot, baseOutputPath, pkgJson, platform) {
365365
if (baseOutputPath == null) {
366366
const outputDirFromPkgJson = readOutputDirFromPkgJson(pkgJson, platform);
367367
if (outputDirFromPkgJson != null) {
368-
baseOutputPath = outputDirFromPkgJson;
368+
baseOutputPath = path.join(projectRoot, outputDirFromPkgJson);
369369
} else {
370370
baseOutputPath = projectRoot;
371371
}

0 commit comments

Comments
 (0)