Skip to content

The Windows packager launcher script does not pass all arguments #13445

@idancali

Description

@idancali

Description

I'm hooking into the packager script and on Windows the script does not pass all the arguments, as the non-windows script does.

Reproduction Steps and Sample Code

If you execute the packager/launchPackager.bat with arguments, those arguments are not passed along the the underlaying node process (cli.js)

Solution

This line in thepackager/launchPackager.bat script

node "%~dp0..\local-cli\cli.js" start

needs to become this:

node "%~dp0..\local-cli\cli.js" start %*

That's all.

Additional Information

  • React Native version: [0.43.3]
  • Platform: [both]
  • Development Operating System: [Windows]
  • Dev tools: [not applicable]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions