diff --git a/cli/script/command-executor.ts b/cli/script/command-executor.ts index 97d369ec9..30b75218c 100644 --- a/cli/script/command-executor.ts +++ b/cli/script/command-executor.ts @@ -1326,8 +1326,8 @@ export const releaseReact = (command: cli.IReleaseReactCommand): Promise = ? Q(command.appStoreVersion) : getReactNativeProjectAppVersion(command, projectName); - if (command.outputDir) { - command.sourcemapOutput = path.join(command.outputDir, bundleName + ".map"); + if (command.sourcemapOutput && !command.sourcemapOutput.endsWith(".map")) { + command.sourcemapOutput = path.join(command.sourcemapOutput, bundleName + ".map"); } return appVersionPromise;