fix: resolve TypeScript pnpm imports#63
Merged
Merged
Conversation
alxxjohn
force-pushed
the
fix/ai-quality-false-positives
branch
from
July 24, 2026 22:21
89a2268 to
fcec2dc
Compare
alxxjohn
force-pushed
the
fix/ai-quality-false-positives
branch
from
July 24, 2026 22:25
dc61f7e to
fcec2dc
Compare
alxxjohn
added a commit
that referenced
this pull request
Jul 25, 2026
🤖 I have created a release *beep* *boop* --- ## [1.2.2](v1.2.1...v1.2.2) (2026-07-25) ### Bug Fixes * parse pnpm lockfile package entries ([11acbd6](11acbd6)) * reduce AI quality false positives ([fd5d103](fd5d103)) * reduce AI quality false positives ([dc61f7e](dc61f7e)) * reduce AI quality false positives ([#64](#64)) ([b80b5c3](b80b5c3)) * resolve TypeScript pnpm imports ([154adc3](154adc3)) * resolve TypeScript pnpm imports ([#63](#63)) ([4d3cc59](4d3cc59)) * satisfy import resolver lint ([fcec2dc](fcec2dc)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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.
Summary
Fixes
quality.ai.hallucinated-importfalse positives in TypeScript/JavaScript pnpm monorepos by resolving imports with the context available to the importing file rather than only the target-root manifest.Resolver changes
package.jsonfor each source file, includingdependencies,devDependencies, andpeerDependencies.node_moduleslocations while walking from the importer toward the scan root..pnpmvirtual store for installed packages.pnpm-lock.yamlas a conservative installed-package fallback whennode_modulesis unavailable.tsconfig*.jsonfiles and resolves configuredbaseUrl/pathsaliases when the mapped target exists..js,.mjs, and.cjsspecifiers resolving to TypeScript source files (for example,./config.jstoconfig.ts).Regression coverage
Adds a pnpm-monorepo fixture covering:
reactnext/navigation@prisma/clienttsconfigpath aliases.jsextension imports targeting.tsfilesValidation
go test ./internal/codeguard/checks/qualitypasses.git diff --checkpasses.