Skip to content

Commit

Permalink
fix: return the right package ID from package-requester
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed May 5, 2024
1 parent 1cc3cf3 commit 14b8055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg-manager/package-requester/src/packageRequester.ts
Expand Up @@ -212,7 +212,7 @@ async function resolveAndFetch (

const id = pkgId as string

if (resolution.type === 'directory' && !id.startsWith('file:') && !id.includes('@file:')) {
if (resolution.type === 'directory' && !normalizedPref?.startsWith('file:') && !wantedDependency.injected) {
if (manifest == null) {
throw new Error(`Couldn't read package.json of local dependency ${wantedDependency.alias ? wantedDependency.alias + '@' : ''}${wantedDependency.pref ?? ''}`)
}
Expand Down

0 comments on commit 14b8055

Please sign in to comment.