Skip to content

New JavaScript library generates Codegen files #754

@kacperkapusciak

Description

@kacperkapusciak

Description

Hi there 👋
When scaffolding a new JavaScript library using create-react-native-library the cli also generates codegen files. Most probably the bug is cased by this line:

where you should also check whether the project is a "native" project.

Removing the "codegen" option in package.json fixes the problem.

Steps to reproduce:

npx create-react-native-library@latest react-native-library-repro
<fill the fields>
<choose JavaScript library>
cd react-native-library-repro
yarn
yarn prepare
yarn pack --dry-run

Image

Packages

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

Selected options

✔ What is the name of the npm package? … react-native-library-repro
✔ What is the description for the package? … Bug reproduction for react-native-builder-bob
✔ What is the name of package author? … kacperkapusciak
✔ What is the email address for the package author? … kacper.kapusciak@swmansion.com
✔ What is the URL for the package author? … https://github.com/kacperkapusciak
✔ What is the URL for the repository? … https://github.com/kacperkapusciak/react-native-library-repro
✔ What type of library do you want to develop? › JavaScript library
✔ Project created successfully at react-native-library-repro!

Link to repro

https://github.com/kacperkapusciak/react-native-library-repro

Environment

Node v20.10.0

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