You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(boundaries): detect node_modules by path instead of package_json() presence
The previous approach used `resolution.package_json().is_some()` to
distinguish npm packages from local tsconfig path alias targets.
However, oxc_resolver may return a package.json for any file inside a
package directory — including files reached via tsconfig `paths` aliases
in a package that has its own package.json.
Switch to checking whether the resolved path contains a `node_modules`
component, which is the canonical way to distinguish npm packages from
local source files.
Also adds a regression test that verifies alias resolution still works
when a package.json is present in the package root.
0 commit comments