@pnpm/plugin-commands-listing 7.0.22 → 7.0.23
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/why.js +6 -1
- package/lib/why.js.map +1 -1
- package/package.json +8 -8
package/lib/why.js
CHANGED
|
@@ -13,6 +13,7 @@ const render_help_1 = __importDefault(require("render-help"));
|
|
|
13
13
|
const list_1 = require("./list");
|
|
14
14
|
function rcOptionsTypes() {
|
|
15
15
|
return (0, pick_1.default)([
|
|
16
|
+
'depth',
|
|
16
17
|
'dev',
|
|
17
18
|
'global-dir',
|
|
18
19
|
'global',
|
|
@@ -81,6 +82,10 @@ For options that may be used with `-r`, see "pnpm help recursive"',
|
|
|
81
82
|
description: "Don't display packages from `optionalDependencies`",
|
|
82
83
|
name: '--no-optional',
|
|
83
84
|
},
|
|
85
|
+
{
|
|
86
|
+
name: '--depth <number>',
|
|
87
|
+
description: 'Max display depth of the dependency graph',
|
|
88
|
+
},
|
|
84
89
|
common_cli_options_help_1.OPTIONS.globalDir,
|
|
85
90
|
...common_cli_options_help_1.UNIVERSAL_OPTIONS,
|
|
86
91
|
],
|
|
@@ -102,7 +107,7 @@ async function handler(opts, params) {
|
|
|
102
107
|
...opts,
|
|
103
108
|
cliOptions: {
|
|
104
109
|
...(opts.cliOptions ?? {}),
|
|
105
|
-
depth: Infinity,
|
|
110
|
+
depth: opts.depth ?? Infinity,
|
|
106
111
|
},
|
|
107
112
|
}, params);
|
|
108
113
|
}
|
package/lib/why.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"why.js","sourceRoot":"","sources":["../src/why.ts"],"names":[],"mappings":";;;;;;AAAA,+CAAyC;AACzC,2EAAqF;AACrF,yCAAgD;AAChD,uCAAuC;AACvC,0DAAiC;AACjC,8DAAoC;AACpC,iCAAiE;AAEjE,SAAgB,cAAc;IAC5B,OAAO,IAAA,cAAI,EAAC;QACV,KAAK;QACL,YAAY;QACZ,Q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EAAE,8EAA8E;wBAC3F,IAAI,EAAE,UAAU;wBAChB,UAAU,EAAE,IAAI;qBACjB;oBACD;wBACE,WAAW,EAAE,6FAA6F;wBAC1G,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE,IAAI;qBACjB;oBACD;wBACE,WAAW,EAAE,qEAAqE;wBAClF,IAAI,EAAE,OAAO;wBACb,UAAU,EAAE,IAAI;qBACjB;oBACD;wBACE,WAAW,EAAE,oDAAoD;wBACjE,IAAI,EAAE,eAAe;qBACtB;oBACD;wBACE,IAAI,EAAE,kBAAkB;wBACxB,WAAW,EAAE,2CAA2C;qBACzD;oBACD,iCAAO,CAAC,SAAS;oBACjB,GAAG,2CAAiB;iBACrB;aACF;YACD,mCAAS;SACV;QACD,GAAG,EAAE,IAAA,mBAAO,EAAC,KAAK,CAAC;QACnB,MAAM,EAAE;YACN,oBAAoB;SACrB;KACF,CAAC,CAAA;AACJ,CAAC;AA9DD,oBA8DC;AAEM,KAAK,UAAU,OAAO,CAC3B,IAAwB,EACxB,MAAgB;IAEhB,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;QACvB,MAAM,IAAI,iBAAS,CAAC,sBAAsB,EAAE,sCAAsC,CAAC,CAAA;KACpF;IACD,OAAO,IAAA,cAAI,EAAC;QACV,GAAG,IAAI;QACP,UAAU,EAAE;YACV,GAAG,CAAC,IAAI,CAAC,UAAU,IAAI,EAAE,CAAC;YAC1B,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,QAAQ;SAC9B;KACF,EAAE,MAAM,CAAC,CAAA;AACZ,CAAC;AAdD,0BAcC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/plugin-commands-listing",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.23",
|
|
4
4
|
"description": "The list and why commands of pnpm",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -28,20 +28,20 @@
|
|
|
28
28
|
"strip-ansi": "^6.0.1",
|
|
29
29
|
"write-yaml-file": "^5.0.0",
|
|
30
30
|
"@pnpm/constants": "7.1.1",
|
|
31
|
-
"@pnpm/
|
|
32
|
-
"@pnpm/plugin-commands-installation": "13.1.
|
|
33
|
-
"@pnpm/
|
|
34
|
-
"@pnpm/
|
|
31
|
+
"@pnpm/plugin-commands-listing": "7.0.23",
|
|
32
|
+
"@pnpm/plugin-commands-installation": "13.1.8",
|
|
33
|
+
"@pnpm/prepare": "0.0.80",
|
|
34
|
+
"@pnpm/filter-workspace-packages": "7.1.1"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
38
38
|
"render-help": "^1.0.3",
|
|
39
39
|
"@pnpm/cli-utils": "2.0.21",
|
|
40
40
|
"@pnpm/common-cli-options-help": "1.0.0",
|
|
41
|
-
"@pnpm/config": "19.1.0",
|
|
42
41
|
"@pnpm/error": "5.0.2",
|
|
43
|
-
"@pnpm/
|
|
44
|
-
"@pnpm/
|
|
42
|
+
"@pnpm/types": "9.2.0",
|
|
43
|
+
"@pnpm/list": "9.1.1",
|
|
44
|
+
"@pnpm/config": "19.1.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@pnpm/logger": "^5.0.0"
|