Skip to content

Conversation

@thymikee
Copy link
Contributor

@thymikee thymikee commented Apr 23, 2025

Summary

We were incorrectly resolving root, relying on process.cwd() instead of the one declared in the config or where the config file was resolved. Adjusted importUp to return the configDir and using that as an automatically resolved root when not provided.

This also reworks how autolinkingConfig is working – we can now pass the entire projectConfig under project key, which opens up the space for moving more autolinking logic into RNEF

Test plan

@vercel
Copy link

vercel bot commented Apr 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
rnef ⬜️ Ignored (Inspect) Visit Preview Apr 23, 2025 10:35pm

Comment on lines 46 to 47
ownConfig.platforms[platform].autolinkingConfig[projectEntry] !==
undefined
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding this so that sourceDir is correctly displayed in the config command. RNC CLI removes the sourceDir from the output when it's explicitly undefined

@thymikee thymikee merged commit a004ed5 into main Apr 23, 2025
4 checks passed
@thymikee thymikee deleted the fix/root branch April 23, 2025 22:39
thymikee added a commit that referenced this pull request Apr 28, 2025
* origin/main:
  feat: refactor and expose remote cache provider (#260)
  fix: move start from @react-native/community-cli-plugin (#288)
  fix: update gradle-wrapper (#287)
  fix: always use udid from matched device (#281)
  chore: v0.7.2 (#279)
  docs: Update migrating-from-community-cli.mdx (#284)
  docs: attribute @expo/fingerprint (#285)
  fix: support plugin in create-app
  chore: v0.7.1 (#278)
  fix: autolinking config missing project (#277)
  fix: bump template to v0.7.0
  chore: cleanup ios brownfield android mention
  chore: v0.7.0 (#274)
  feat: upgrade templates to 0.79 (#275)
  fix: incorrectly resolving root (#276)
  chore: simplify welcome message and improve prompts (#273)
  docs: add logo (#272)
  chore: v0.6.2 (#268)
  fix: resolve project root to absolute path (#269)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants