fix: return bundled manifest for local dependency (#6702)

This commit is contained in:
Zoltan Kochan
2023-06-23 01:30:33 +03:00
committed by GitHub
parent 3c2c426d13
commit de2cbbcf56

View File

@@ -613,6 +613,11 @@ Actual package in the store by the given integrity: ${pkgFilesIndex.name}@${pkgF
filesIndex: fetchedPackage.filesIndex,
packageImportMethod: (fetchedPackage as DirectoryFetcherResult).packageImportMethod,
}
if (fetchedPackage.filesIndex['package.json'] != null) {
readBundledManifest(fetchedPackage.filesIndex['package.json'])
.then(bundledManifest.resolve)
.catch(bundledManifest.reject)
}
}
if (isLocalTarballDep && (opts.pkg.resolution as TarballResolution).integrity) {