@pnpm/plugin-commands-installation 14.0.15 → 14.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/LICENSE +1 -1
- package/lib/dedupe.d.ts +19 -2
- package/lib/dedupe.js +11 -8
- package/lib/dedupe.js.map +1 -1
- package/package.json +16 -15
package/LICENSE
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2015-2016 Rico Sta. Cruz and other contributors
|
|
4
|
-
Copyright (c) 2016-
|
|
4
|
+
Copyright (c) 2016-2024 Zoltan Kochan and other contributors
|
|
5
5
|
|
|
6
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
7
|
of this software and associated documentation files (the "Software"), to deal
|
package/lib/dedupe.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
/// <reference types="node" />
|
|
4
4
|
import { type InstallCommandOptions } from './install';
|
|
5
|
-
export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agent" | "ca" | "cert" | "registry" | "dev" | "optional" | "tag" | "force" | "color" | "global" | "save" | "production" | "depth" | "offline" | "loglevel" | "only" | "globalconfig" | "userconfig" | "proxy" | "local-address" | "ignore-scripts" | "dry-run" | "save-prod" | "save-dev" | "save-optional" | "script-shell" | "fetch-retries" | "fetch-retry-factor" | "fetch-retry-mintimeout" | "fetch-retry-maxtimeout" | "save-exact" | "save-prefix" | "scripts-prepend-node-path" | "engine-strict" | "node-version" | "unsafe-perm" | "prefer-offline" | "https-proxy" | "no-proxy" | "strict-ssl" | "package-lock", any>> & {
|
|
5
|
+
export declare function rcOptionsTypes(): Omit<Pick<Partial<Record<"key" | "user-agent" | "ca" | "cert" | "registry" | "dev" | "optional" | "tag" | "force" | "color" | "global" | "save" | "production" | "depth" | "offline" | "loglevel" | "only" | "globalconfig" | "userconfig" | "proxy" | "local-address" | "ignore-scripts" | "dry-run" | "save-prod" | "save-dev" | "save-optional" | "script-shell" | "fetch-retries" | "fetch-retry-factor" | "fetch-retry-mintimeout" | "fetch-retry-maxtimeout" | "save-exact" | "save-prefix" | "scripts-prepend-node-path" | "engine-strict" | "node-version" | "unsafe-perm" | "prefer-offline" | "https-proxy" | "no-proxy" | "strict-ssl" | "package-lock", any>> & {
|
|
6
6
|
access: (string | null)[];
|
|
7
7
|
'allow-same-version': BooleanConstructor;
|
|
8
8
|
'always-auth': BooleanConstructor;
|
|
@@ -122,10 +122,27 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
122
122
|
versions: BooleanConstructor;
|
|
123
123
|
viewer: StringConstructor;
|
|
124
124
|
_exit: BooleanConstructor;
|
|
125
|
-
}, "ignore-scripts">;
|
|
125
|
+
}, "registry" | "dev" | "optional" | "global" | "production" | "offline" | "only" | "proxy" | "ignore-scripts" | "fetch-retries" | "fetch-retry-factor" | "fetch-retry-mintimeout" | "fetch-retry-maxtimeout" | "scripts-prepend-node-path" | "engine-strict" | "unsafe-perm" | "prefer-offline" | "https-proxy">, "frozen-lockfile">;
|
|
126
126
|
export declare function cliOptionsTypes(): {
|
|
127
127
|
check: BooleanConstructor;
|
|
128
|
+
registry: any;
|
|
129
|
+
dev: any;
|
|
130
|
+
optional: any;
|
|
131
|
+
global: any;
|
|
132
|
+
production: any;
|
|
133
|
+
offline: any;
|
|
134
|
+
only: any;
|
|
135
|
+
proxy: any;
|
|
128
136
|
'ignore-scripts': any;
|
|
137
|
+
'fetch-retries': any;
|
|
138
|
+
'fetch-retry-factor': any;
|
|
139
|
+
'fetch-retry-mintimeout': any;
|
|
140
|
+
'fetch-retry-maxtimeout': any;
|
|
141
|
+
'scripts-prepend-node-path': any;
|
|
142
|
+
'engine-strict': any;
|
|
143
|
+
'unsafe-perm': any;
|
|
144
|
+
'prefer-offline': any;
|
|
145
|
+
'https-proxy': any;
|
|
129
146
|
};
|
|
130
147
|
export declare const commandNames: string[];
|
|
131
148
|
export declare function help(): string;
|
package/lib/dedupe.js
CHANGED
|
@@ -8,11 +8,13 @@ const cli_utils_1 = require("@pnpm/cli-utils");
|
|
|
8
8
|
const common_cli_options_help_1 = require("@pnpm/common-cli-options-help");
|
|
9
9
|
const dedupe_check_1 = require("@pnpm/dedupe.check");
|
|
10
10
|
const render_help_1 = __importDefault(require("render-help"));
|
|
11
|
+
const install_1 = require("./install");
|
|
11
12
|
const installDeps_1 = require("./installDeps");
|
|
12
|
-
const
|
|
13
|
-
|
|
13
|
+
const omit_1 = __importDefault(require("ramda/src/omit"));
|
|
14
|
+
// In general, the "pnpm dedupe" command should use .npmrc options that "pnpm install" would also accept.
|
|
14
15
|
function rcOptionsTypes() {
|
|
15
|
-
|
|
16
|
+
// Some options on pnpm install (like --frozen-lockfile) don't make sense on pnpm dedupe.
|
|
17
|
+
return (0, omit_1.default)(['frozen-lockfile'], (0, install_1.rcOptionsTypes)());
|
|
16
18
|
}
|
|
17
19
|
exports.rcOptionsTypes = rcOptionsTypes;
|
|
18
20
|
function cliOptionsTypes() {
|
|
@@ -35,10 +37,12 @@ function help() {
|
|
|
35
37
|
description: 'Check if running dedupe would result in changes without installing packages or editing the lockfile. Exits with a non-zero status code if changes are possible.',
|
|
36
38
|
name: '--check',
|
|
37
39
|
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
common_cli_options_help_1.OPTIONS.ignoreScripts,
|
|
41
|
+
common_cli_options_help_1.OPTIONS.offline,
|
|
42
|
+
common_cli_options_help_1.OPTIONS.preferOffline,
|
|
43
|
+
common_cli_options_help_1.OPTIONS.storeDir,
|
|
44
|
+
common_cli_options_help_1.OPTIONS.virtualStoreDir,
|
|
45
|
+
common_cli_options_help_1.OPTIONS.globalDir,
|
|
42
46
|
],
|
|
43
47
|
},
|
|
44
48
|
],
|
|
@@ -56,7 +60,6 @@ async function handler(opts) {
|
|
|
56
60
|
return (0, installDeps_1.installDeps)({
|
|
57
61
|
...opts,
|
|
58
62
|
dedupe: true,
|
|
59
|
-
ignoreScripts: opts.ignoreScripts ?? false,
|
|
60
63
|
include,
|
|
61
64
|
includeDirect: include,
|
|
62
65
|
lockfileCheck: opts.check ? dedupe_check_1.dedupeDiffCheck : undefined,
|
package/lib/dedupe.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dedupe.js","sourceRoot":"","sources":["../src/dedupe.ts"],"names":[],"mappings":";;;;;;AAAA,+CAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"dedupe.js","sourceRoot":"","sources":["../src/dedupe.ts"],"names":[],"mappings":";;;;;;AAAA,+CAAyC;AACzC,2EAA0E;AAC1E,qDAAoD;AACpD,8DAAoC;AACpC,uCAAsG;AACtG,+CAA2C;AAC3C,0DAAiC;AAEjC,yGAAyG;AACzG,SAAgB,cAAc;IAC5B,yFAAyF;IACzF,OAAO,IAAA,cAAI,EAAC,CAAC,iBAAiB,CAAC,EAAE,IAAA,wBAA4B,GAAE,CAAC,CAAA;AAClE,CAAC;AAHD,wCAGC;AAED,SAAgB,eAAe;IAC7B,OAAO;QACL,GAAG,cAAc,EAAE;QACnB,KAAK,EAAE,OAAO;KACf,CAAA;AACH,CAAC;AALD,0CAKC;AAEY,QAAA,YAAY,GAAG,CAAC,QAAQ,CAAC,CAAA;AAEtC,SAAgB,IAAI;IAClB,OAAO,IAAA,qBAAU,EAAC;QAChB,WAAW,EAAE,gGAAgG;QAC7G,gBAAgB,EAAE;YAChB;gBACE,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE;oBACJ,GAAG,2CAAiB;oBACpB;wBACE,WAAW,EAAE,iKAAiK;wBAC9K,IAAI,EAAE,SAAS;qBAChB;oBACD,iCAAO,CAAC,aAAa;oBACrB,iCAAO,CAAC,OAAO;oBACf,iCAAO,CAAC,aAAa;oBACrB,iCAAO,CAAC,QAAQ;oBAChB,iCAAO,CAAC,eAAe;oBACvB,iCAAO,CAAC,SAAS;iBAClB;aACF;SACF;QACD,GAAG,EAAE,IAAA,mBAAO,EAAC,QAAQ,CAAC;QACtB,MAAM,EAAE,CAAC,aAAa,CAAC;KACxB,CAAC,CAAA;AACJ,CAAC;AAxBD,oBAwBC;AAMM,KAAK,UAAU,OAAO,CAAE,IAA0B;IACvD,MAAM,OAAO,GAAG;QACd,YAAY,EAAE,IAAI,CAAC,UAAU,KAAK,KAAK;QACvC,eAAe,EAAE,IAAI,CAAC,GAAG,KAAK,KAAK;QACnC,oBAAoB,EAAE,IAAI,CAAC,QAAQ,KAAK,KAAK;KAC9C,CAAA;IACD,OAAO,IAAA,yBAAW,EAAC;QACjB,GAAG,IAAI;QACP,MAAM,EAAE,IAAI;QACZ,OAAO;QACP,aAAa,EAAE,OAAO;QACtB,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,8BAAe,CAAC,CAAC,CAAC,SAAS;KACxD,EAAE,EAAE,CAAC,CAAA;AACR,CAAC;AAbD,0BAaC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/plugin-commands-installation",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.1.1",
|
|
4
4
|
"description": "Commands for installation",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -40,10 +40,11 @@
|
|
|
40
40
|
"write-pkg": "4.0.0",
|
|
41
41
|
"write-yaml-file": "^5.0.0",
|
|
42
42
|
"@pnpm/assert-project": "2.3.44",
|
|
43
|
-
"@pnpm/plugin-commands-installation": "14.0.15",
|
|
44
43
|
"@pnpm/modules-yaml": "12.1.6",
|
|
44
|
+
"@pnpm/plugin-commands-installation": "14.1.1",
|
|
45
45
|
"@pnpm/prepare": "0.0.87",
|
|
46
|
-
"@pnpm/test-fixtures": "0.1.17"
|
|
46
|
+
"@pnpm/test-fixtures": "0.1.17",
|
|
47
|
+
"@pnpm/test-ipc-server": "0.0.0"
|
|
47
48
|
},
|
|
48
49
|
"dependencies": {
|
|
49
50
|
"@pnpm/colorize-semver-diff": "^1.0.1",
|
|
@@ -67,31 +68,31 @@
|
|
|
67
68
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
68
69
|
"render-help": "^1.0.3",
|
|
69
70
|
"version-selector-type": "^3.0.0",
|
|
70
|
-
"@pnpm/cli-utils": "2.1.
|
|
71
|
-
"@pnpm/command": "4.0.0",
|
|
71
|
+
"@pnpm/cli-utils": "2.1.7",
|
|
72
72
|
"@pnpm/common-cli-options-help": "1.1.0",
|
|
73
|
-
"@pnpm/
|
|
74
|
-
"@pnpm/config": "20.
|
|
73
|
+
"@pnpm/command": "4.0.0",
|
|
74
|
+
"@pnpm/config": "20.4.0",
|
|
75
75
|
"@pnpm/constants": "7.1.1",
|
|
76
|
-
"@pnpm/
|
|
76
|
+
"@pnpm/core": "13.3.1",
|
|
77
77
|
"@pnpm/error": "5.0.2",
|
|
78
|
+
"@pnpm/filter-workspace-packages": "7.2.9",
|
|
79
|
+
"@pnpm/dedupe.check": "1.0.7",
|
|
78
80
|
"@pnpm/find-workspace-dir": "6.0.2",
|
|
79
|
-
"@pnpm/filter-workspace-packages": "7.2.8",
|
|
80
81
|
"@pnpm/graceful-fs": "3.2.0",
|
|
81
82
|
"@pnpm/lockfile-types": "5.1.5",
|
|
82
|
-
"@pnpm/manifest-utils": "5.0.7",
|
|
83
83
|
"@pnpm/matcher": "5.0.0",
|
|
84
|
+
"@pnpm/manifest-utils": "5.0.7",
|
|
85
|
+
"@pnpm/outdated": "13.0.39",
|
|
86
|
+
"@pnpm/package-store": "19.0.14",
|
|
84
87
|
"@pnpm/parse-wanted-dependency": "5.0.0",
|
|
85
|
-
"@pnpm/plugin-commands-rebuild": "10.0.12",
|
|
86
|
-
"@pnpm/outdated": "13.0.38",
|
|
87
88
|
"@pnpm/pnpmfile": "5.0.19",
|
|
88
|
-
"@pnpm/package-store": "19.0.13",
|
|
89
89
|
"@pnpm/read-project-manifest": "5.0.10",
|
|
90
90
|
"@pnpm/resolver-base": "11.0.2",
|
|
91
|
+
"@pnpm/plugin-commands-rebuild": "10.0.14",
|
|
91
92
|
"@pnpm/sort-packages": "5.0.9",
|
|
93
|
+
"@pnpm/store-connection-manager": "7.0.23",
|
|
92
94
|
"@pnpm/types": "9.4.2",
|
|
93
|
-
"@pnpm/
|
|
94
|
-
"@pnpm/workspace.find-packages": "1.1.7",
|
|
95
|
+
"@pnpm/workspace.find-packages": "1.1.8",
|
|
95
96
|
"@pnpm/workspace.pkgs-graph": "2.0.13"
|
|
96
97
|
},
|
|
97
98
|
"peerDependencies": {
|