-
Notifications
You must be signed in to change notification settings - Fork 216
Description
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:
react-native-builder-bob/packages/create-react-native-library/templates/common/$package.json
Line 175 in 4c046a2
<% if (project.arch === 'new') { -%> |
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
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