-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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(expo): pnpm+workspace build #28209
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 951a2e3. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 5 targets
Sent with 💌 from NxCloud. |
@@ -114,7 +114,7 @@ function copyPackageJsonAndLock( | |||
packageManager: PackageManager, | |||
workspaceRoot: string, | |||
projectRoot: string | |||
) { | |||
): () => void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to make not possible to forget again
## Current Behavior build executors for expo crash when package manager pnpm and workspaces are used ## Expected Behavior no crashies ## Related Issue(s) #28208 Fixes #28208 ## FAQ - why not handle the `undefined` by the calling code instead The less the calling code knows about inner workings, the better: in this case, doing this would add the implicit dependency on "pnpm and workspaces" to the calling code - but it's an empty function, my performance We call it once per user interaction. - but still, it's an empty function We return an `empty array` when there are no elements; we don't return `undefined` when the array is empty and `array` when array is non-empty. Hopefully so. - but, The doc also says that this function returns a function.
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
build executors for expo crash when package manager pnpm and workspaces are used
Expected Behavior
no crashies
Related Issue(s)
#28208
Fixes #28208
FAQ
undefined
by the calling code insteadThe less the calling code knows about inner workings, the better: in this case, doing this would add the implicit dependency on "pnpm and workspaces" to the calling code
We call it once per user interaction.
We return an
empty array
when there are no elements; we don't returnundefined
when the array is empty andarray
when array is non-empty. Hopefully so.The doc also says that this function returns a function.