Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: issue calling init from 0.75.0-rc.1 release #2436

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

blakef
Copy link
Contributor

@blakef blakef commented Jun 25, 2024

Summary:

When users call the cli through react-native (a deprecated path), it hard-codes the platform name to 'react-native'. This is an error, and doing this bypasses all template selection logic.

This excludes setting the platform name to 'react-native', which is assumed.

Test Plan:

Replicates these changes to the npx cache ~/.npx/_cache/.../index.js to confirm this fixes the issue holding up the release. Added some logging to show:

CleanShot 2024-06-25 at 17 41 10@2x

  1. The run() method is called with react-native, which we should ignore.
  2. The raw process.argv used to call
  3. The expected outcome with out change.

Checklist

  • Documentation is up to date to reflect these changes.
  • Follows commit message convention described in CONTRIBUTING.md

packages/cli/src/index.ts Outdated Show resolved Hide resolved
When users call the cli through react-native (a deprecated path), it
hard-codes the platform name to 'react-native'. This is an error, and
doing this bypasses all template selection logic.

This excludes setting the platform name to 'react-native', which is
assumed.
@blakef blakef force-pushed the fix-react-native-75-rc1-patch branch from 9b33645 to 4f95208 Compare June 25, 2024 16:55
@cortinico cortinico merged commit d53582d into main Jun 26, 2024
8 of 10 checks passed
@cortinico cortinico deleted the fix-react-native-75-rc1-patch branch June 26, 2024 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants