fix(schematics): resolve built-in collection by path#3473
Open
yudin-s wants to merge 1 commit into
Open
Conversation
yudin-s
force-pushed
the
fix/pnpm-global-schematics-resolution
branch
from
July 1, 2026 09:00
68b278c to
c44a0c0
Compare
yudin-s
marked this pull request as ready for review
July 7, 2026 09:52
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
When
@nestjs/cliis installed globally with pnpm 11,nest newcan fail before scaffolding because the spawned Angular schematics CLI cannot resolve the built-in@nestjs/schematicscollection from pnpm's global store layout.Issue Number: Fixes #3471
What is the new behavior?
NestCollectionresolves the installed@nestjs/schematicspackage metadata and invokes schematics through the package's concrete collection file path. The collection path is quoted so installs under paths containing spaces still work.Because schematics-cli treats collection file paths as local collections, the CLI also passes
--no-debugto avoid enabling debug/dry-run defaults for normalnest newandnest generatecommands.Does this PR introduce a breaking change?
Other information
Local validation: