From 5d6e2c7d366706e7f856cc730537cc40fc860eea Mon Sep 17 00:00:00 2001 From: minizzang Date: Tue, 12 Nov 2024 21:55:52 +0900 Subject: [PATCH 1/2] Fix sourcemap output filename --- cli/script/command-executor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/script/command-executor.ts b/cli/script/command-executor.ts index 97d369ec9..8a7ac0e06 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 = path.join(command.sourcemapOutput, bundleName + ".map"); } return appVersionPromise; From 813fff1ca33a322a4fac6a37304e3b7a8aa7670b Mon Sep 17 00:00:00 2001 From: minizzang Date: Wed, 20 Nov 2024 12:57:04 +0900 Subject: [PATCH 2/2] Add condition for sourcemap output path --- cli/script/command-executor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/script/command-executor.ts b/cli/script/command-executor.ts index 8a7ac0e06..30b75218c 100644 --- a/cli/script/command-executor.ts +++ b/cli/script/command-executor.ts @@ -1326,7 +1326,7 @@ export const releaseReact = (command: cli.IReleaseReactCommand): Promise = ? Q(command.appStoreVersion) : getReactNativeProjectAppVersion(command, projectName); - if (command.sourcemapOutput) { + if (command.sourcemapOutput && !command.sourcemapOutput.endsWith(".map")) { command.sourcemapOutput = path.join(command.sourcemapOutput, bundleName + ".map"); }