@yarnpkg/plugin-pnp 4.0.0-rc.50 → 4.0.0-rc.51
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/lib/commands/unplug.js +3 -0
- package/package.json +8 -8
package/lib/commands/unplug.js
CHANGED
|
@@ -64,6 +64,9 @@ class UnplugCommand extends cli_1.BaseCommand {
|
|
|
64
64
|
const traverse = (pkg, depth) => {
|
|
65
65
|
if (seen.has(pkg.locatorHash))
|
|
66
66
|
return;
|
|
67
|
+
const isWorkspace = !!project.tryWorkspaceByLocator(pkg);
|
|
68
|
+
if (depth > 0 && !this.recursive && isWorkspace)
|
|
69
|
+
return;
|
|
67
70
|
seen.add(pkg.locatorHash);
|
|
68
71
|
// Note: We shouldn't skip virtual packages, as
|
|
69
72
|
// we don't iterate over the devirtualized copies.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yarnpkg/plugin-pnp",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.51",
|
|
4
4
|
"stableVersion": "3.2.13",
|
|
5
5
|
"license": "BSD-2-Clause",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -9,21 +9,21 @@
|
|
|
9
9
|
"./package.json": "./package.json"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@yarnpkg/fslib": "^3.0.0-rc.
|
|
13
|
-
"@yarnpkg/plugin-stage": "^4.0.0-rc.
|
|
14
|
-
"@yarnpkg/pnp": "^4.0.0-rc.
|
|
12
|
+
"@yarnpkg/fslib": "^3.0.0-rc.51",
|
|
13
|
+
"@yarnpkg/plugin-stage": "^4.0.0-rc.51",
|
|
14
|
+
"@yarnpkg/pnp": "^4.0.0-rc.51",
|
|
15
15
|
"clipanion": "^4.0.0-rc.2",
|
|
16
16
|
"micromatch": "^4.0.2",
|
|
17
17
|
"tslib": "^2.4.0"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@yarnpkg/cli": "^4.0.0-rc.
|
|
21
|
-
"@yarnpkg/core": "^4.0.0-rc.
|
|
20
|
+
"@yarnpkg/cli": "^4.0.0-rc.51",
|
|
21
|
+
"@yarnpkg/core": "^4.0.0-rc.51"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/micromatch": "^4.0.1",
|
|
25
|
-
"@yarnpkg/cli": "^4.0.0-rc.
|
|
26
|
-
"@yarnpkg/core": "^4.0.0-rc.
|
|
25
|
+
"@yarnpkg/cli": "^4.0.0-rc.51",
|
|
26
|
+
"@yarnpkg/core": "^4.0.0-rc.51"
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|