Skip to content

feat: optionally use meta.getPackageJson for rootGeneratorName and ro… - #1834

Merged
mshima merged 1 commit into
yeoman:mainfrom
mshima:resolution
Aug 24, 2026
Merged

feat: optionally use meta.getPackageJson for rootGeneratorName and ro…#1834
mshima merged 1 commit into
yeoman:mainfrom
mshima:resolution

Conversation

@mshima

@mshima mshima commented Aug 24, 2026

Copy link
Copy Markdown
Member

…otGeneratorVersion

Resolve the root generator's package.json through the generator meta provided by the environment (getPackageJson, cached per package by the environment, or packagePath) instead of always looking it up from the resolved path. Fall back to readPackageUpSync for legacy environments and direct instantiation.

Purpose of this pull request?

  • Documentation update
  • Bug fix
  • Enhancement
  • Other, please explain:

What changes did you make?

Is there anything you'd like reviewers to focus on?

…otGeneratorVersion

Resolve the root generator's package.json through the generator meta provided by the environment (`getPackageJson`, cached per package by the environment, or `packagePath`) instead of always looking it up from the resolved path. Fall back to `readPackageUpSync` for legacy environments and direct instantiation.
@mshima
mshima merged commit ca58b19 into yeoman:main Aug 24, 2026
19 checks passed
@mshima
mshima deleted the resolution branch August 24, 2026 02:05
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.

1 participant