Skip to content

create-react-native-library --tools inconveniences #913

Closed

Description

@Johennes

Description

0.55.0 added --tools which introduces a few inconveniences:

  1. --tools eagerly consumes all further arguments that don't start with -. Notably you cannot put the library name at the end of the command anymore:
$ npx create-react-native-library@latest [...] --tools eslint mylib
Unzulässige Werte:
  Argument: tools, Gegeben: "mylib", Möglichkeiten: "eslint", "lefthook", "release-it", "jest"
  1. I couldn't find a way to select no tools without setting --local true. I might not want any of these tools despite creating a non-local library though.

  2. The addition of --tools is a breaking change as it is required and has no default value. It would be helpful if this could be called out in the release notes or through semantic versioning.

Packages

  • create-react-native-library
  • react-native-builder-bob

Selected options

See above

Link to repro

Environment

Activity

  1. satya164 commented on Dec 10, 2025

    @satya164
    Member

    Hey @Johennes, I'm working on a refactor that will allow specifying --tools= without any values to say that you don't want to configure any tools.

    The --tools eslint jest format is an artifact of the yargs library - but after the refactor yargs is no longer used, so it won't treat positionals as the value of the argument, but require --tools eslint --tools jest to specify multiple tools.

    As the CLI is still 0.x, breaking changes can still happen due to semver, but I'll try to document CLI related changes in the changelog.

  2. Johennes commented on Dec 10, 2025

    @Johennes
    Author

    This sounds excellent, thank you. 👍

  3. added a commit that references this issue on Dec 10, 2025
    a8d8ab6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions