resolve-pkglock 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17932,12 +17932,12 @@ async function init(workspaceRoot) {
|
|
|
17932
17932
|
}
|
|
17933
17933
|
if (lockfile.packages) {
|
|
17934
17934
|
for (const [relDepPath, pkg] of Object.entries(lockfile.packages)) {
|
|
17935
|
-
const { dependencies, optionalDependencies } = pkg, packageLocation = join(virtualStoreDir, libExports$2.depPathToFilename(relDepPath, virtualStoreDirMaxLength)), { name, version } = libExports.nameVerFromPkgSnapshot(relDepPath, pkg), pkgInfo = {
|
|
17935
|
+
const { dependencies, optionalDependencies } = pkg, packageLocation = join(virtualStoreDir, libExports$2.depPathToFilename(relDepPath, virtualStoreDirMaxLength)), { name, nonSemverVersion, version } = libExports.nameVerFromPkgSnapshot(relDepPath, pkg), pkgInfo = {
|
|
17936
17936
|
dependencies,
|
|
17937
17937
|
name,
|
|
17938
17938
|
optionalDependencies,
|
|
17939
17939
|
packageLocation,
|
|
17940
|
-
version
|
|
17940
|
+
version: version ?? nonSemverVersion
|
|
17941
17941
|
};
|
|
17942
17942
|
dirToPackage[join(packageLocation, 'node_modules', name)] = pkgInfo;
|
|
17943
17943
|
addToRegistry(packageRegistry, pkgInfo);
|