@pnpm/plugin-commands-listing 10.0.9 → 10.1.1
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/list.d.ts +7 -0
- package/lib/list.js +8 -1
- package/lib/list.js.map +1 -1
- package/lib/why.js +2 -0
- package/lib/why.js.map +1 -1
- package/package.json +14 -14
package/lib/list.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { type Config } from '@pnpm/config';
|
|
2
2
|
import { type IncludedDependencies } from '@pnpm/types';
|
|
3
|
+
export declare const EXCLUDE_PEERS_HELP: {
|
|
4
|
+
description: string;
|
|
5
|
+
name: string;
|
|
6
|
+
};
|
|
3
7
|
export declare function rcOptionsTypes(): Record<string, unknown>;
|
|
4
8
|
export declare const cliOptionsTypes: () => Record<string, unknown>;
|
|
5
9
|
export declare const shorthands: Record<string, string>;
|
|
@@ -8,6 +12,8 @@ export declare function help(): string;
|
|
|
8
12
|
export type ListCommandOptions = Pick<Config, 'allProjects' | 'dev' | 'dir' | 'optional' | 'production' | 'selectedProjectsGraph' | 'modulesDir' | 'virtualStoreDirMaxLength'> & Partial<Pick<Config, 'cliOptions'>> & {
|
|
9
13
|
alwaysPrintRootPackage?: boolean;
|
|
10
14
|
depth?: number;
|
|
15
|
+
excludePeers?: boolean;
|
|
16
|
+
json?: boolean;
|
|
11
17
|
lockfileDir?: string;
|
|
12
18
|
long?: boolean;
|
|
13
19
|
parseable?: boolean;
|
|
@@ -18,6 +24,7 @@ export declare function handler(opts: ListCommandOptions, params: string[]): Pro
|
|
|
18
24
|
export declare function render(prefixes: string[], params: string[], opts: {
|
|
19
25
|
alwaysPrintRootPackage?: boolean;
|
|
20
26
|
depth?: number;
|
|
27
|
+
excludePeers?: boolean;
|
|
21
28
|
include: IncludedDependencies;
|
|
22
29
|
lockfileDir: string;
|
|
23
30
|
long?: boolean;
|
package/lib/list.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.commandNames = exports.shorthands = exports.cliOptionsTypes = void 0;
|
|
6
|
+
exports.commandNames = exports.shorthands = exports.cliOptionsTypes = exports.EXCLUDE_PEERS_HELP = void 0;
|
|
7
7
|
exports.rcOptionsTypes = rcOptionsTypes;
|
|
8
8
|
exports.help = help;
|
|
9
9
|
exports.handler = handler;
|
|
@@ -15,6 +15,10 @@ const list_1 = require("@pnpm/list");
|
|
|
15
15
|
const pick_1 = __importDefault(require("ramda/src/pick"));
|
|
16
16
|
const render_help_1 = __importDefault(require("render-help"));
|
|
17
17
|
const recursive_1 = require("./recursive");
|
|
18
|
+
exports.EXCLUDE_PEERS_HELP = {
|
|
19
|
+
description: 'Exclude peer dependencies',
|
|
20
|
+
name: '--exclude-peers',
|
|
21
|
+
};
|
|
18
22
|
function rcOptionsTypes() {
|
|
19
23
|
return (0, pick_1.default)([
|
|
20
24
|
'depth',
|
|
@@ -31,6 +35,7 @@ function rcOptionsTypes() {
|
|
|
31
35
|
}
|
|
32
36
|
const cliOptionsTypes = () => ({
|
|
33
37
|
...rcOptionsTypes(),
|
|
38
|
+
'exclude-peers': Boolean,
|
|
34
39
|
'only-projects': Boolean,
|
|
35
40
|
recursive: Boolean,
|
|
36
41
|
});
|
|
@@ -104,6 +109,7 @@ For options that may be used with `-r`, see "pnpm help recursive"',
|
|
|
104
109
|
description: "Don't display packages from `optionalDependencies`",
|
|
105
110
|
name: '--no-optional',
|
|
106
111
|
},
|
|
112
|
+
exports.EXCLUDE_PEERS_HELP,
|
|
107
113
|
common_cli_options_help_1.OPTIONS.globalDir,
|
|
108
114
|
...common_cli_options_help_1.UNIVERSAL_OPTIONS,
|
|
109
115
|
],
|
|
@@ -138,6 +144,7 @@ async function render(prefixes, params, opts) {
|
|
|
138
144
|
const listOpts = {
|
|
139
145
|
alwaysPrintRootPackage: opts.alwaysPrintRootPackage,
|
|
140
146
|
depth: opts.depth ?? 0,
|
|
147
|
+
excludePeerDependencies: opts.excludePeers,
|
|
141
148
|
include: opts.include,
|
|
142
149
|
lockfileDir: opts.lockfileDir,
|
|
143
150
|
long: opts.long,
|
package/lib/list.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../src/list.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../src/list.ts"],"names":[],"mappings":";;;;;;AAcA,wCAaC;AAgBD,oBA6EC;AAuBD,0BAoBC;AAED,wBAiCC;AAtMD,+CAAyC;AACzC,2EAAqF;AACrF,yCAA6D;AAC7D,qCAAkD;AAElD,0DAAiC;AACjC,8DAAoC;AACpC,2CAA2C;AAE9B,QAAA,kBAAkB,GAAG;IAChC,WAAW,EAAE,2BAA2B;IACxC,IAAI,EAAE,iBAAiB;CACxB,CAAA;AAED,SAAgB,cAAc;IAC5B,OAAO,IAAA,cAAI,EAAC;QACV,OAAO;QACP,KAAK;QACL,YAAY;QACZ,QAAQ;QACR,MAAM;QACN,MAAM;QACN,MAAM;QACN,UAAU;QACV,WAAW;QACX,YAAY;KACb,EAAE,cAAQ,CAAC,CAAA;AACd,CAAC;AAEM,MAAM,eAAe,GAAG,GAA4B,EAAE,CAAC,CAAC;IAC7D,GAAG,cAAc,EAAE;IACnB,eAAe,EAAE,OAAO;IACxB,eAAe,EAAE,OAAO;IACxB,SAAS,EAAE,OAAO;CACnB,CAAC,CAAA;AALW,QAAA,eAAe,mBAK1B;AAEW,QAAA,UAAU,GAA2B;IAChD,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,cAAc;CAClB,CAAA;AAEY,QAAA,YAAY,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;AAE1C,SAAgB,IAAI;IAClB,OAAO,IAAA,qBAAU,EAAC;QAChB,O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,IAAI,CAAC,IAAI;QACf,YAAY,EAAE,IAAI,CAAC,YAAY;QAC/B,QAAQ,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAoC;QAC3G,cAAc,EAAE,KAAK;QACrB,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,wBAAwB,EAAE,IAAI,CAAC,wBAAwB;KACxD,CAAA;IACD,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;QACxB,CAAC,CAAC,IAAA,sBAAe,EAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC;QAC7C,CAAC,CAAC,IAAA,WAAI,EAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;AAC9B,CAAC"}
|
package/lib/why.js
CHANGED
|
@@ -30,6 +30,7 @@ function rcOptionsTypes() {
|
|
|
30
30
|
}
|
|
31
31
|
const cliOptionsTypes = () => ({
|
|
32
32
|
...rcOptionsTypes(),
|
|
33
|
+
'exclude-peers': Boolean,
|
|
33
34
|
recursive: Boolean,
|
|
34
35
|
});
|
|
35
36
|
exports.cliOptionsTypes = cliOptionsTypes;
|
|
@@ -88,6 +89,7 @@ For options that may be used with `-r`, see "pnpm help recursive"',
|
|
|
88
89
|
name: '--depth <number>',
|
|
89
90
|
description: 'Max display depth of the dependency graph',
|
|
90
91
|
},
|
|
92
|
+
list_1.EXCLUDE_PEERS_HELP,
|
|
91
93
|
common_cli_options_help_1.OPTIONS.globalDir,
|
|
92
94
|
...common_cli_options_help_1.UNIVERSAL_OPTIONS,
|
|
93
95
|
],
|
package/lib/why.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"why.js","sourceRoot":"","sources":["../src/why.ts"],"names":[],"mappings":";;;;;;AAQA,wCAaC;
|
|
1
|
+
{"version":3,"file":"why.js","source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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,yBAAkB;oBAClB,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;AAEM,KAAK,UAAU,OAAO,CAC3B,IAAwB,EACxB,MAAgB;IAEhB,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,iBAAS,CAAC,sBAAsB,EAAE,sCAAsC,CAAC,CAAA;IACrF,CAAC;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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/plugin-commands-listing",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.1.1",
|
|
4
4
|
"description": "The list and why commands of pnpm",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -22,28 +22,28 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/pnpm/pnpm/blob/main/reviewing/plugin-commands-listing#readme",
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@pnpm/registry-mock": "3.
|
|
25
|
+
"@pnpm/registry-mock": "3.41.0",
|
|
26
26
|
"@types/ramda": "0.29.12",
|
|
27
27
|
"execa": "npm:safe-execa@0.1.2",
|
|
28
28
|
"strip-ansi": "^6.0.1",
|
|
29
29
|
"write-yaml-file": "^5.0.0",
|
|
30
|
-
"@pnpm/constants": "
|
|
31
|
-
"@pnpm/filter-workspace-packages": "10.0.
|
|
30
|
+
"@pnpm/constants": "9.0.0",
|
|
31
|
+
"@pnpm/filter-workspace-packages": "10.0.11",
|
|
32
|
+
"@pnpm/plugin-commands-installation": "17.2.4",
|
|
33
|
+
"@pnpm/plugin-commands-listing": "10.1.1",
|
|
32
34
|
"@pnpm/logger": "5.2.0",
|
|
33
|
-
"@pnpm/
|
|
34
|
-
"@pnpm/
|
|
35
|
-
"@pnpm/prepare": "0.0.101",
|
|
36
|
-
"@pnpm/workspace.filter-packages-from-dir": "1.0.10"
|
|
35
|
+
"@pnpm/prepare": "0.0.103",
|
|
36
|
+
"@pnpm/workspace.filter-packages-from-dir": "1.0.12"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
40
40
|
"render-help": "^1.0.3",
|
|
41
|
-
"@pnpm/cli-utils": "4.0.
|
|
41
|
+
"@pnpm/cli-utils": "4.0.6",
|
|
42
42
|
"@pnpm/common-cli-options-help": "2.0.0",
|
|
43
|
-
"@pnpm/
|
|
44
|
-
"@pnpm/
|
|
45
|
-
"@pnpm/
|
|
46
|
-
"@pnpm/
|
|
43
|
+
"@pnpm/config": "21.8.4",
|
|
44
|
+
"@pnpm/error": "6.0.2",
|
|
45
|
+
"@pnpm/list": "10.2.1",
|
|
46
|
+
"@pnpm/types": "12.2.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@pnpm/logger": "^5.1.0"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
57
|
-
"_test": "cross-env PNPM_REGISTRY_MOCK_PORT=
|
|
57
|
+
"_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7781 jest",
|
|
58
58
|
"test": "pnpm run compile && pnpm run _test",
|
|
59
59
|
"compile": "tsc --build && pnpm run lint --fix"
|
|
60
60
|
}
|