[cna] Avoid error with out-of-box Netlify config #88546
Merged
+3
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
Fix error with Netlify not finding
pnpm create-next-appbuild output (when users use pnpm)Also, remove unnecessary configuration, since pnpm v9 and v10 docs mention that the root package is always included:
For pnpm v9 (eg. latest version
9.15.9), thepackages: []cannot be entirely removed, because pnpm will error out with the messagepackages field missing or empty:Why?
When
packagesis set to a single item with., Netlify infers the build command aspnpm --filter <package name from root package.json> buildHow?
Change
packagesconfig from single item with.to an empty array, which causes Netlify to inferpnpm buildas the commandcc @eps1lon