Skip to content

Conversation

@gun-yu
Copy link
Collaborator

@gun-yu gun-yu commented Nov 1, 2025

I’ve added tests and standardized the error messages to align with the conventions in TypeScript and Go.
I also made some minor implementation updates, which I’ll explain in the comments.

Copy link
Owner

@GGomez99 GGomez99 left a comment

Choose a reason for hiding this comment

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

Thank you so much for this! I have a few comments but the PR overall looks good to me! 🔥

@gun-yu gun-yu requested a review from GGomez99 November 2, 2025 03:33
if ok {
typeRoots = pnpTypeRoots
}
typeRoots, fromConfig = pnpApi.AppendPnpTypeRoots(typeRoots, compilerOptions.GetBaseDirFromOptions(r.host.GetCurrentDirectory()), false)
Copy link
Owner

@GGomez99 GGomez99 Nov 2, 2025

Choose a reason for hiding this comment

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

I'm sorry if I wasn't clear, but you need to pass the fromConfig as the third argument too:

Suggested change
typeRoots, fromConfig = pnpApi.AppendPnpTypeRoots(typeRoots, compilerOptions.GetBaseDirFromOptions(r.host.GetCurrentDirectory()), false)
typeRoots, fromConfig = pnpApi.AppendPnpTypeRoots(typeRoots, compilerOptions.GetBaseDirFromOptions(r.host.GetCurrentDirectory()), fromConfig)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thank you for taking the time to check it! abbd1c3

@gun-yu gun-yu requested a review from GGomez99 November 2, 2025 09:32
@gun-yu gun-yu merged commit 6e2eaff into guyllian.gomez/yarn-pnp Nov 2, 2025
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.

3 participants