Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit e9ad2ca

Browse files
authored
[CLI] Fix sourcemap output filename (#43)
**Fix sourcemapOutput Overwrite** There's an issue where the sourcemap output is overwritten when both the sourcemap output and output directory are used together in the CLI.
1 parent 5d42d39 commit e9ad2ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/script/command-executor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,8 +1326,8 @@ export const releaseReact = (command: cli.IReleaseReactCommand): Promise<void> =
13261326
? Q(command.appStoreVersion)
13271327
: getReactNativeProjectAppVersion(command, projectName);
13281328

1329-
if (command.outputDir) {
1330-
command.sourcemapOutput = path.join(command.outputDir, bundleName + ".map");
1329+
if (command.sourcemapOutput && !command.sourcemapOutput.endsWith(".map")) {
1330+
command.sourcemapOutput = path.join(command.sourcemapOutput, bundleName + ".map");
13311331
}
13321332

13331333
return appVersionPromise;

0 commit comments

Comments
 (0)