@yarnpkg/nm 4.0.0-rc.51 → 4.0.0-rc.52
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.
|
@@ -389,11 +389,11 @@ const populateNodeModulesTree = (pnp, hoistedTree, options) => {
|
|
|
389
389
|
const getPackageName = (identName) => {
|
|
390
390
|
const [nameOrScope, name] = identName.split(`/`);
|
|
391
391
|
return name ? {
|
|
392
|
-
scope:
|
|
393
|
-
name:
|
|
392
|
+
scope: nameOrScope,
|
|
393
|
+
name: name,
|
|
394
394
|
} : {
|
|
395
395
|
scope: null,
|
|
396
|
-
name:
|
|
396
|
+
name: nameOrScope,
|
|
397
397
|
};
|
|
398
398
|
};
|
|
399
399
|
const seenNodes = new Set();
|
|
@@ -445,7 +445,7 @@ const populateNodeModulesTree = (pnp, hoistedTree, options) => {
|
|
|
445
445
|
const nodeModulesIdx = segments.indexOf(NODE_MODULES);
|
|
446
446
|
for (let segCount = segments.length - 1; nodeModulesIdx >= 0 && segCount > nodeModulesIdx; segCount--) {
|
|
447
447
|
const dirPath = fslib_1.npath.toPortablePath(segments.slice(0, segCount).join(fslib_1.ppath.sep));
|
|
448
|
-
const targetDir =
|
|
448
|
+
const targetDir = segments[segCount];
|
|
449
449
|
const subdirs = tree.get(dirPath);
|
|
450
450
|
if (!subdirs) {
|
|
451
451
|
tree.set(dirPath, { dirList: new Set([targetDir]) });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yarnpkg/nm",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.52",
|
|
4
4
|
"license": "BSD-2-Clause",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
},
|
|
10
10
|
"sideEffects": false,
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@yarnpkg/core": "^4.0.0-rc.
|
|
13
|
-
"@yarnpkg/fslib": "^3.0.0-rc.
|
|
14
|
-
"@yarnpkg/pnp": "^4.0.0-rc.
|
|
12
|
+
"@yarnpkg/core": "^4.0.0-rc.52",
|
|
13
|
+
"@yarnpkg/fslib": "^3.0.0-rc.52",
|
|
14
|
+
"@yarnpkg/pnp": "^4.0.0-rc.52"
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
17
|
"postpack": "rm -rf lib",
|