Skip to content

Latest create-react-native-library@0.49.9 prompts for "local project" in a new folder, blocks CI usage of script #830

@jonthysell

Description

@jonthysell

Description

Calling create-react-native-library now prompts "Looks like you're under a project folder. Do you want to create a local library?" I'm running in a clean directory, so the detection is not working correctly.

This is breaking the react-native-windows CI as we use create-react-native-library to confirm it's possible to create new library projects that we can then add Windows support to.

Packages

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

Selected options

npx --yes create-react-native-library@latest --slug testlib3 --description testlib3 --author-name "React-Native-Windows Bot" --author-email 53619745+rnbot@users.noreply.github.com --author-url http://example.com --repo-url http://example.com --languages kotlin-objc --type turbo-module --react-native-version 0.78.0-nightly-20250113-d4407d6f7 --example vanilla testlib3

Link to repro

microsoft/react-native-windows#14633

Environment

info Fetching system and libraries information...
System:
OS: Windows 11 10.0.26100
CPU: "(24) x64 AMD Ryzen Threadripper PRO 3945WX 12-Cores "
Memory: 45.00 GB / 63.86 GB
Binaries:
Node:
version: 18.18.0
path: C:\Program Files\nodejs\node.EXE
Yarn:
version: 1.22.22
path: C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm:
version: 9.8.1
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
AllowAllTrustedApps: Enabled
Versions:
- 10.0.19041.0
- 10.0.22621.0
- 10.0.26100.0
IDEs:
Android Studio: Not Found
Visual Studio:
- 17.14.35906.104 (Visual Studio Enterprise 2022)
- 17.13.35931.197 (Visual Studio Enterprise 2022)
Languages:
Java: Not Found
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react: Not Found
react-native: Not Found
react-native-windows: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: Not found

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