diff --git a/README.md b/README.md index fd18b17..08ff485 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,7 @@ target_binary_version | Target binary version for example 1.0.1 | | mandatory | manadtory update or not | | true description | Release description for CodePush | | no description for release no_duplicate_release_error | Specifies whether to return an error if the main bundle is identical to the latest codepush release | | false +entry_file | This specifies the relative path to the app's root/entry JavaScript file. | | none dry_run | Print the command that would be run, but don't run it | | false ### Release React action diff --git a/lib/fastlane/plugin/code_push/actions/code_push_release_react_action.rb b/lib/fastlane/plugin/code_push/actions/code_push_release_react_action.rb index 121375e..d46b507 100644 --- a/lib/fastlane/plugin/code_push/actions/code_push_release_react_action.rb +++ b/lib/fastlane/plugin/code_push/actions/code_push_release_react_action.rb @@ -26,6 +26,9 @@ def self.run(params) if params[:sourcemap_output] command += "-s #{params[:sourcemap_output]} " end + if params[:entry_file] + command += "-e #{params[:entry_file]} " + end if params[:dry_run] UI.message("Dry run!".red + " Would have run: " + command + "\n") else @@ -112,7 +115,11 @@ def self.available_options FastlaneCore::ConfigItem.new(key: :sourcemap_output, is_string: true, optional: true, - description: "Specifies path to write sourcemap to") + description: "Specifies path to write sourcemap to"), + FastlaneCore::ConfigItem.new(key: :entry_file, + is_string: true, + optional: true, + description: "Specifies the relative path to the app's root/entry JavaScript file") ] end