@pnpm/plugin-commands-installation 14.2.6 → 14.3.0
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/add.d.ts +14 -14
- package/lib/dedupe.d.ts +11 -11
- package/lib/fetch.d.ts +9 -9
- package/lib/install.d.ts +11 -11
- package/lib/link.d.ts +2 -2
- package/lib/prune.d.ts +2 -2
- package/lib/prune.js +2 -0
- package/lib/prune.js.map +1 -1
- package/lib/remove.d.ts +1 -1
- package/lib/update/index.d.ts +12 -12
- package/package.json +15 -15
- package/lib/updateToLatestSpecsFromManifest.d.ts +0 -3
- package/lib/updateToLatestSpecsFromManifest.js +0 -49
- package/lib/updateToLatestSpecsFromManifest.js.map +0 -1
package/lib/add.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<"
|
|
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>> & {
|
|
6
6
|
access: (string | null)[];
|
|
7
7
|
'allow-same-version': BooleanConstructor;
|
|
8
8
|
'always-auth': BooleanConstructor;
|
|
@@ -122,33 +122,33 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"optional" | "key"
|
|
|
122
122
|
versions: BooleanConstructor;
|
|
123
123
|
viewer: StringConstructor;
|
|
124
124
|
_exit: BooleanConstructor;
|
|
125
|
-
}, "
|
|
125
|
+
}, "registry" | "optional" | "force" | "global" | "production" | "offline" | "only" | "proxy" | "ignore-scripts" | "save-prod" | "save-dev" | "save-optional" | "fetch-retries" | "fetch-retry-factor" | "fetch-retry-mintimeout" | "fetch-retry-maxtimeout" | "save-exact" | "save-prefix" | "engine-strict" | "unsafe-perm" | "prefer-offline" | "https-proxy">;
|
|
126
126
|
export declare function cliOptionsTypes(): {
|
|
127
127
|
recursive: BooleanConstructor;
|
|
128
128
|
save: BooleanConstructor;
|
|
129
129
|
workspace: BooleanConstructor;
|
|
130
|
+
registry: any;
|
|
130
131
|
optional: any;
|
|
131
|
-
|
|
132
|
+
force: any;
|
|
132
133
|
global: any;
|
|
133
134
|
production: any;
|
|
134
|
-
|
|
135
|
-
registry: any;
|
|
135
|
+
offline: any;
|
|
136
136
|
only: any;
|
|
137
|
-
|
|
137
|
+
proxy: any;
|
|
138
|
+
'ignore-scripts': any;
|
|
139
|
+
'save-prod': any;
|
|
140
|
+
'save-dev': any;
|
|
141
|
+
'save-optional': any;
|
|
138
142
|
'fetch-retries': any;
|
|
139
143
|
'fetch-retry-factor': any;
|
|
140
|
-
'fetch-retry-maxtimeout': any;
|
|
141
144
|
'fetch-retry-mintimeout': any;
|
|
142
|
-
'
|
|
143
|
-
'ignore-scripts': any;
|
|
144
|
-
'prefer-offline': any;
|
|
145
|
-
proxy: any;
|
|
145
|
+
'fetch-retry-maxtimeout': any;
|
|
146
146
|
'save-exact': any;
|
|
147
147
|
'save-prefix': any;
|
|
148
|
+
'engine-strict': any;
|
|
148
149
|
'unsafe-perm': any;
|
|
149
|
-
'
|
|
150
|
-
'
|
|
151
|
-
'save-optional': any;
|
|
150
|
+
'prefer-offline': any;
|
|
151
|
+
'https-proxy': any;
|
|
152
152
|
};
|
|
153
153
|
export declare const commandNames: string[];
|
|
154
154
|
export declare function help(): string;
|
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(): Omit<Pick<Partial<Record<"
|
|
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,27 +122,27 @@ export declare function rcOptionsTypes(): Omit<Pick<Partial<Record<"optional" |
|
|
|
122
122
|
versions: BooleanConstructor;
|
|
123
123
|
viewer: StringConstructor;
|
|
124
124
|
_exit: BooleanConstructor;
|
|
125
|
-
}, "
|
|
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;
|
|
128
130
|
optional: any;
|
|
129
|
-
offline: any;
|
|
130
131
|
global: any;
|
|
131
132
|
production: any;
|
|
132
|
-
|
|
133
|
+
offline: any;
|
|
133
134
|
only: any;
|
|
134
|
-
|
|
135
|
-
'
|
|
135
|
+
proxy: any;
|
|
136
|
+
'ignore-scripts': any;
|
|
136
137
|
'fetch-retries': any;
|
|
137
138
|
'fetch-retry-factor': any;
|
|
138
|
-
'fetch-retry-maxtimeout': any;
|
|
139
139
|
'fetch-retry-mintimeout': any;
|
|
140
|
-
'
|
|
141
|
-
'ignore-scripts': any;
|
|
142
|
-
'prefer-offline': any;
|
|
143
|
-
proxy: any;
|
|
140
|
+
'fetch-retry-maxtimeout': any;
|
|
144
141
|
'scripts-prepend-node-path': any;
|
|
142
|
+
'engine-strict': any;
|
|
145
143
|
'unsafe-perm': any;
|
|
144
|
+
'prefer-offline': any;
|
|
145
|
+
'https-proxy': any;
|
|
146
146
|
};
|
|
147
147
|
export declare const commandNames: string[];
|
|
148
148
|
export declare function help(): string;
|
package/lib/fetch.d.ts
CHANGED
|
@@ -6,24 +6,24 @@ export declare const rcOptionsTypes: () => {
|
|
|
6
6
|
'resolution-only': BooleanConstructor;
|
|
7
7
|
recursive: BooleanConstructor;
|
|
8
8
|
force: any;
|
|
9
|
+
registry: any;
|
|
10
|
+
dev: any;
|
|
9
11
|
optional: any;
|
|
10
|
-
offline: any;
|
|
11
12
|
global: any;
|
|
12
13
|
production: any;
|
|
13
|
-
|
|
14
|
+
offline: any;
|
|
14
15
|
only: any;
|
|
15
|
-
|
|
16
|
-
'
|
|
16
|
+
proxy: any;
|
|
17
|
+
'ignore-scripts': any;
|
|
17
18
|
'fetch-retries': any;
|
|
18
19
|
'fetch-retry-factor': any;
|
|
19
|
-
'fetch-retry-maxtimeout': any;
|
|
20
20
|
'fetch-retry-mintimeout': any;
|
|
21
|
-
'
|
|
22
|
-
'ignore-scripts': any;
|
|
23
|
-
'prefer-offline': any;
|
|
24
|
-
proxy: any;
|
|
21
|
+
'fetch-retry-maxtimeout': any;
|
|
25
22
|
'scripts-prepend-node-path': any;
|
|
23
|
+
'engine-strict': any;
|
|
26
24
|
'unsafe-perm': any;
|
|
25
|
+
'prefer-offline': any;
|
|
26
|
+
'https-proxy': any;
|
|
27
27
|
};
|
|
28
28
|
export { cliOptionsTypes };
|
|
29
29
|
export declare const shorthands: {
|
package/lib/install.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/// <reference types="node" />
|
|
4
4
|
import { type Config } from '@pnpm/config';
|
|
5
5
|
import { type CreateStoreControllerOptions } from '@pnpm/store-connection-manager';
|
|
6
|
-
export declare function rcOptionsTypes(): Pick<Partial<Record<"
|
|
6
|
+
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>> & {
|
|
7
7
|
access: (string | null)[];
|
|
8
8
|
'allow-same-version': BooleanConstructor;
|
|
9
9
|
'always-auth': BooleanConstructor;
|
|
@@ -123,30 +123,30 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"optional" | "key"
|
|
|
123
123
|
versions: BooleanConstructor;
|
|
124
124
|
viewer: StringConstructor;
|
|
125
125
|
_exit: BooleanConstructor;
|
|
126
|
-
}, "
|
|
126
|
+
}, "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">;
|
|
127
127
|
export declare const cliOptionsTypes: () => {
|
|
128
128
|
'fix-lockfile': BooleanConstructor;
|
|
129
129
|
'resolution-only': BooleanConstructor;
|
|
130
130
|
recursive: BooleanConstructor;
|
|
131
131
|
force: any;
|
|
132
|
+
registry: any;
|
|
133
|
+
dev: any;
|
|
132
134
|
optional: any;
|
|
133
|
-
offline: any;
|
|
134
135
|
global: any;
|
|
135
136
|
production: any;
|
|
136
|
-
|
|
137
|
+
offline: any;
|
|
137
138
|
only: any;
|
|
138
|
-
|
|
139
|
-
'
|
|
139
|
+
proxy: any;
|
|
140
|
+
'ignore-scripts': any;
|
|
140
141
|
'fetch-retries': any;
|
|
141
142
|
'fetch-retry-factor': any;
|
|
142
|
-
'fetch-retry-maxtimeout': any;
|
|
143
143
|
'fetch-retry-mintimeout': any;
|
|
144
|
-
'
|
|
145
|
-
'ignore-scripts': any;
|
|
146
|
-
'prefer-offline': any;
|
|
147
|
-
proxy: any;
|
|
144
|
+
'fetch-retry-maxtimeout': any;
|
|
148
145
|
'scripts-prepend-node-path': any;
|
|
146
|
+
'engine-strict': any;
|
|
149
147
|
'unsafe-perm': any;
|
|
148
|
+
'prefer-offline': any;
|
|
149
|
+
'https-proxy': any;
|
|
150
150
|
};
|
|
151
151
|
export declare const shorthands: {
|
|
152
152
|
D: string;
|
package/lib/link.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { type Config } from '@pnpm/config';
|
|
|
6
6
|
import { type CreateStoreControllerOptions } from '@pnpm/store-connection-manager';
|
|
7
7
|
type LinkOpts = CreateStoreControllerOptions & Pick<Config, 'bin' | 'cliOptions' | 'engineStrict' | 'saveDev' | 'saveOptional' | 'saveProd' | 'workspaceDir' | 'sharedWorkspaceLockfile'> & Partial<Pick<Config, 'linkWorkspacePackages'>>;
|
|
8
8
|
export declare const rcOptionsTypes: typeof cliOptionsTypes;
|
|
9
|
-
export declare function cliOptionsTypes(): Pick<Partial<Record<"
|
|
9
|
+
export declare function cliOptionsTypes(): 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>> & {
|
|
10
10
|
access: (string | null)[];
|
|
11
11
|
'allow-same-version': BooleanConstructor;
|
|
12
12
|
'always-auth': BooleanConstructor;
|
|
@@ -126,7 +126,7 @@ export declare function cliOptionsTypes(): Pick<Partial<Record<"optional" | "key
|
|
|
126
126
|
versions: BooleanConstructor;
|
|
127
127
|
viewer: StringConstructor;
|
|
128
128
|
_exit: BooleanConstructor;
|
|
129
|
-
}, "
|
|
129
|
+
}, "registry" | "global" | "production" | "only" | "save-dev" | "save-optional" | "save-exact" | "save-prefix" | "unsafe-perm">;
|
|
130
130
|
export declare const commandNames: string[];
|
|
131
131
|
export declare function help(): string;
|
|
132
132
|
export declare function handler(opts: LinkOpts, params?: string[]): Promise<void>;
|
package/lib/prune.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/// <reference types="node" />
|
|
4
4
|
import * as install from './install';
|
|
5
5
|
export declare const rcOptionsTypes: typeof cliOptionsTypes;
|
|
6
|
-
export declare function cliOptionsTypes(): Pick<Partial<Record<"
|
|
6
|
+
export declare function cliOptionsTypes(): 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>> & {
|
|
7
7
|
access: (string | null)[];
|
|
8
8
|
'allow-same-version': BooleanConstructor;
|
|
9
9
|
'always-auth': BooleanConstructor;
|
|
@@ -123,7 +123,7 @@ export declare function cliOptionsTypes(): Pick<Partial<Record<"optional" | "key
|
|
|
123
123
|
versions: BooleanConstructor;
|
|
124
124
|
viewer: StringConstructor;
|
|
125
125
|
_exit: BooleanConstructor;
|
|
126
|
-
}, "optional" | "production" | "
|
|
126
|
+
}, "dev" | "optional" | "production" | "ignore-scripts">;
|
|
127
127
|
export declare const commandNames: string[];
|
|
128
128
|
export declare function help(): string;
|
|
129
129
|
export declare function handler(opts: install.InstallCommandOptions): Promise<void>;
|
package/lib/prune.js
CHANGED
|
@@ -39,6 +39,7 @@ function cliOptionsTypes() {
|
|
|
39
39
|
'dev',
|
|
40
40
|
'optional',
|
|
41
41
|
'production',
|
|
42
|
+
'ignore-scripts',
|
|
42
43
|
], config_1.types);
|
|
43
44
|
}
|
|
44
45
|
exports.cliOptionsTypes = cliOptionsTypes;
|
|
@@ -58,6 +59,7 @@ function help() {
|
|
|
58
59
|
description: 'Remove the packages specified in `optionalDependencies`',
|
|
59
60
|
name: '--no-optional',
|
|
60
61
|
},
|
|
62
|
+
common_cli_options_help_1.OPTIONS.ignoreScripts,
|
|
61
63
|
...common_cli_options_help_1.UNIVERSAL_OPTIONS,
|
|
62
64
|
],
|
|
63
65
|
},
|
package/lib/prune.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prune.js","sourceRoot":"","sources":["../src/prune.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"prune.js","sourceRoot":"","sources":["../src/prune.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAyC;AACzC,2EAA0E;AAC1E,yCAAgD;AAChD,0DAAiC;AACjC,8DAAoC;AACpC,mDAAoC;AAEvB,QAAA,cAAc,GAAG,eAAe,CAAA;AAE7C,SAAgB,eAAe;IAC7B,OAAO,IAAA,cAAI,EAAC;QACV,KAAK;QACL,UAAU;QACV,YAAY;QACZ,gBAAgB;KACjB,EAAE,cAAQ,CAAC,CAAA;AACd,CAAC;AAPD,0CAOC;AAEY,QAAA,YAAY,GAAG,CAAC,OAAO,CAAC,CAAA;AAErC,SAAgB,IAAI;IAClB,OAAO,IAAA,qBAAU,EAAC;QAChB,WAAW,EAAE,6BAA6B;QAC1C,gBAAgB,EAAE;YAChB;gBACE,KAAK,EAAE,SAAS;gBAEhB,IAAI,EAAE;oBACJ;wBACE,WAAW,EAAE,oDAAoD;wBACjE,IAAI,EAAE,QAAQ;qBACf;oBACD;wBACE,WAAW,EAAE,yDAAyD;wBACtE,IAAI,EAAE,eAAe;qBACtB;oBACD,iCAAO,CAAC,aAAa;oBACrB,GAAG,2CAAiB;iBACrB;aACF;SACF;QACD,GAAG,EAAE,IAAA,mBAAO,EAAC,OAAO,CAAC;QACrB,MAAM,EAAE,CAAC,qBAAqB,CAAC;KAChC,CAAC,CAAA;AACJ,CAAC;AAxBD,oBAwBC;AAEM,KAAK,UAAU,OAAO,CAC3B,IAAmC;IAEnC,OAAO,OAAO,CAAC,OAAO,CAAC;QACrB,GAAG,IAAI;QACP,kBAAkB,EAAE,CAAC;QACrB,uBAAuB,EAAE,IAAI;QAC7B,UAAU,EAAE,IAAI;KACjB,CAAC,CAAA;AACJ,CAAC;AATD,0BASC"}
|
package/lib/remove.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { type CompletionFunc } from '@pnpm/command';
|
|
5
5
|
import { type Config } from '@pnpm/config';
|
|
6
6
|
import { type CreateStoreControllerOptions } from '@pnpm/store-connection-manager';
|
|
7
|
-
export declare function rcOptionsTypes(): Pick<Partial<Record<"
|
|
7
|
+
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>> & {
|
|
8
8
|
access: (string | null)[];
|
|
9
9
|
'allow-same-version': BooleanConstructor;
|
|
10
10
|
'always-auth': BooleanConstructor;
|
package/lib/update/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/// <reference types="node" />
|
|
4
4
|
import { type CompletionFunc } from '@pnpm/command';
|
|
5
5
|
import { type InstallCommandOptions } from '../install';
|
|
6
|
-
export declare function rcOptionsTypes(): Pick<Partial<Record<"
|
|
6
|
+
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>> & {
|
|
7
7
|
access: (string | null)[];
|
|
8
8
|
'allow-same-version': BooleanConstructor;
|
|
9
9
|
'always-auth': BooleanConstructor;
|
|
@@ -123,35 +123,35 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"optional" | "key"
|
|
|
123
123
|
versions: BooleanConstructor;
|
|
124
124
|
viewer: StringConstructor;
|
|
125
125
|
_exit: BooleanConstructor;
|
|
126
|
-
}, "
|
|
126
|
+
}, "registry" | "dev" | "optional" | "force" | "global" | "save" | "production" | "depth" | "offline" | "only" | "proxy" | "ignore-scripts" | "fetch-retries" | "fetch-retry-factor" | "fetch-retry-mintimeout" | "fetch-retry-maxtimeout" | "save-exact" | "save-prefix" | "scripts-prepend-node-path" | "engine-strict" | "unsafe-perm" | "prefer-offline" | "https-proxy">;
|
|
127
127
|
export declare function cliOptionsTypes(): {
|
|
128
128
|
interactive: BooleanConstructor;
|
|
129
129
|
latest: BooleanConstructor;
|
|
130
130
|
recursive: BooleanConstructor;
|
|
131
131
|
workspace: BooleanConstructor;
|
|
132
|
+
registry: any;
|
|
133
|
+
dev: any;
|
|
132
134
|
optional: any;
|
|
133
|
-
|
|
135
|
+
force: any;
|
|
134
136
|
global: any;
|
|
135
137
|
save: any;
|
|
136
138
|
production: any;
|
|
137
|
-
force: any;
|
|
138
139
|
depth: any;
|
|
139
|
-
|
|
140
|
+
offline: any;
|
|
140
141
|
only: any;
|
|
141
|
-
|
|
142
|
-
'
|
|
142
|
+
proxy: any;
|
|
143
|
+
'ignore-scripts': any;
|
|
143
144
|
'fetch-retries': any;
|
|
144
145
|
'fetch-retry-factor': any;
|
|
145
|
-
'fetch-retry-maxtimeout': any;
|
|
146
146
|
'fetch-retry-mintimeout': any;
|
|
147
|
-
'
|
|
148
|
-
'ignore-scripts': any;
|
|
149
|
-
'prefer-offline': any;
|
|
150
|
-
proxy: any;
|
|
147
|
+
'fetch-retry-maxtimeout': any;
|
|
151
148
|
'save-exact': any;
|
|
152
149
|
'save-prefix': any;
|
|
153
150
|
'scripts-prepend-node-path': any;
|
|
151
|
+
'engine-strict': any;
|
|
154
152
|
'unsafe-perm': any;
|
|
153
|
+
'prefer-offline': any;
|
|
154
|
+
'https-proxy': any;
|
|
155
155
|
};
|
|
156
156
|
export declare const shorthands: {
|
|
157
157
|
D: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/plugin-commands-installation",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.3.0",
|
|
4
4
|
"description": "Commands for installation",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"write-yaml-file": "^5.0.0",
|
|
42
42
|
"@pnpm/assert-project": "2.3.47",
|
|
43
43
|
"@pnpm/modules-yaml": "12.1.7",
|
|
44
|
-
"@pnpm/plugin-commands-installation": "14.
|
|
44
|
+
"@pnpm/plugin-commands-installation": "14.3.0",
|
|
45
45
|
"@pnpm/prepare": "0.0.90",
|
|
46
|
-
"@pnpm/test-
|
|
47
|
-
"@pnpm/test-
|
|
46
|
+
"@pnpm/test-fixtures": "0.1.20",
|
|
47
|
+
"@pnpm/test-ipc-server": "0.0.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@pnpm/colorize-semver-diff": "^1.0.1",
|
|
@@ -70,30 +70,30 @@
|
|
|
70
70
|
"version-selector-type": "^3.0.0",
|
|
71
71
|
"@pnpm/cli-utils": "2.1.11",
|
|
72
72
|
"@pnpm/command": "4.0.0",
|
|
73
|
+
"@pnpm/common-cli-options-help": "1.1.0",
|
|
73
74
|
"@pnpm/config": "20.4.3",
|
|
74
|
-
"@pnpm/core": "13.5.1",
|
|
75
75
|
"@pnpm/constants": "7.1.1",
|
|
76
|
+
"@pnpm/core": "13.5.2",
|
|
76
77
|
"@pnpm/dedupe.check": "1.0.8",
|
|
77
78
|
"@pnpm/error": "5.0.3",
|
|
78
|
-
"@pnpm/filter-workspace-packages": "7.2.
|
|
79
|
+
"@pnpm/filter-workspace-packages": "7.2.14",
|
|
79
80
|
"@pnpm/find-workspace-dir": "6.0.3",
|
|
80
81
|
"@pnpm/graceful-fs": "3.2.0",
|
|
81
82
|
"@pnpm/lockfile-types": "5.1.5",
|
|
82
|
-
"@pnpm/matcher": "5.0.0",
|
|
83
83
|
"@pnpm/manifest-utils": "5.0.8",
|
|
84
|
-
"@pnpm/
|
|
84
|
+
"@pnpm/matcher": "5.0.0",
|
|
85
85
|
"@pnpm/outdated": "13.0.44",
|
|
86
|
-
"@pnpm/package-store": "19.0.17",
|
|
87
86
|
"@pnpm/parse-wanted-dependency": "5.0.0",
|
|
88
|
-
"@pnpm/
|
|
87
|
+
"@pnpm/package-store": "19.0.17",
|
|
89
88
|
"@pnpm/plugin-commands-rebuild": "10.0.21",
|
|
89
|
+
"@pnpm/pnpmfile": "5.0.21",
|
|
90
90
|
"@pnpm/read-project-manifest": "5.0.11",
|
|
91
|
-
"@pnpm/resolver-base": "11.1.0",
|
|
92
|
-
"@pnpm/store-connection-manager": "7.0.28",
|
|
93
|
-
"@pnpm/workspace.find-packages": "1.1.12",
|
|
94
91
|
"@pnpm/sort-packages": "5.0.9",
|
|
95
|
-
"@pnpm/
|
|
96
|
-
"@pnpm/types": "9.4.2"
|
|
92
|
+
"@pnpm/store-connection-manager": "7.0.28",
|
|
93
|
+
"@pnpm/types": "9.4.2",
|
|
94
|
+
"@pnpm/resolver-base": "11.1.0",
|
|
95
|
+
"@pnpm/workspace.pkgs-graph": "2.0.16",
|
|
96
|
+
"@pnpm/workspace.find-packages": "1.1.12"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
99
|
"@pnpm/logger": "^5.0.0"
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { type IncludedDependencies, type ProjectManifest } from '@pnpm/types';
|
|
2
|
-
export declare function updateToLatestSpecsFromManifest(manifest: ProjectManifest, include: IncludedDependencies): string[];
|
|
3
|
-
export declare function createLatestSpecs(specs: string[], manifest: ProjectManifest): string[];
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.createLatestSpecs = exports.updateToLatestSpecsFromManifest = void 0;
|
|
7
|
-
const manifest_utils_1 = require("@pnpm/manifest-utils");
|
|
8
|
-
const version_selector_type_1 = __importDefault(require("version-selector-type"));
|
|
9
|
-
function updateToLatestSpecsFromManifest(manifest, include) {
|
|
10
|
-
const allDeps = (0, manifest_utils_1.filterDependenciesByType)(manifest, include);
|
|
11
|
-
const updateSpecs = [];
|
|
12
|
-
for (const [depName, depVersion] of Object.entries(allDeps)) {
|
|
13
|
-
if (depVersion.startsWith('npm:')) {
|
|
14
|
-
updateSpecs.push(`${depName}@${removeVersionFromSpec(depVersion)}@latest`);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
const selector = (0, version_selector_type_1.default)(depVersion);
|
|
18
|
-
if (selector == null)
|
|
19
|
-
continue;
|
|
20
|
-
updateSpecs.push(`${depName}@latest`);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return updateSpecs;
|
|
24
|
-
}
|
|
25
|
-
exports.updateToLatestSpecsFromManifest = updateToLatestSpecsFromManifest;
|
|
26
|
-
function createLatestSpecs(specs, manifest) {
|
|
27
|
-
const allDeps = (0, manifest_utils_1.getAllDependenciesFromManifest)(manifest);
|
|
28
|
-
return specs
|
|
29
|
-
.filter((selector) => selector.includes('@', 1)
|
|
30
|
-
? allDeps[selector.slice(0, selector.indexOf('@', 1))]
|
|
31
|
-
: allDeps[selector])
|
|
32
|
-
.map((selector) => {
|
|
33
|
-
if (selector.includes('@', 1)) {
|
|
34
|
-
return selector;
|
|
35
|
-
}
|
|
36
|
-
if (allDeps[selector].startsWith('npm:')) {
|
|
37
|
-
return `${selector}@${removeVersionFromSpec(allDeps[selector])}@latest`;
|
|
38
|
-
}
|
|
39
|
-
if ((0, version_selector_type_1.default)(allDeps[selector]) == null) {
|
|
40
|
-
return selector;
|
|
41
|
-
}
|
|
42
|
-
return `${selector}@latest`;
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
exports.createLatestSpecs = createLatestSpecs;
|
|
46
|
-
function removeVersionFromSpec(spec) {
|
|
47
|
-
return spec.substring(0, spec.lastIndexOf('@'));
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=updateToLatestSpecsFromManifest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateToLatestSpecsFromManifest.js","sourceRoot":"","sources":["../src/updateToLatestSpecsFromManifest.ts"],"names":[],"mappings":";;;;;;AAAA,yDAA+F;AAE/F,kFAAiD;AAEjD,SAAgB,+BAA+B,CAAE,QAAyB,EAAE,OAA6B;IACvG,MAAM,OAAO,GAAG,IAAA,yCAAwB,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;IAC3D,MAAM,WAAW,GAAG,EAAE,CAAA;IACtB,KAAK,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QAC3D,IAAI,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;YACjC,WAAW,CAAC,IAAI,CAAC,GAAG,OAAO,IAAI,qBAAqB,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA;SAC3E;aAAM;YACL,MAAM,QAAQ,GAAG,IAAA,+BAAa,EAAC,UAAU,CAAC,CAAA;YAC1C,IAAI,QAAQ,IAAI,IAAI;gBAAE,SAAQ;YAC9B,WAAW,CAAC,IAAI,CAAC,GAAG,OAAO,SAAS,CAAC,CAAA;SACtC;KACF;IACD,OAAO,WAAW,CAAA;AACpB,CAAC;AAbD,0EAaC;AAED,SAAgB,iBAAiB,CAAE,KAAe,EAAE,QAAyB;IAC3E,MAAM,OAAO,GAAG,IAAA,+CAA8B,EAAC,QAAQ,CAAC,CAAA;IACxD,OAAO,KAAK;SACT,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC;QAC7C,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;QACtD,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CACpB;SACA,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;QAChB,IAAI,QAAQ,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE;YAC7B,OAAO,QAAQ,CAAA;SAChB;QACD,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;YACxC,OAAO,GAAG,QAAQ,IAAI,qBAAqB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAA;SACxE;QACD,IAAI,IAAA,+BAAa,EAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,IAAI,EAAE;YAC5C,OAAO,QAAQ,CAAA;SAChB;QACD,OAAO,GAAG,QAAQ,SAAS,CAAA;IAC7B,CAAC,CAAC,CAAA;AACN,CAAC;AAnBD,8CAmBC;AAED,SAAS,qBAAqB,CAAE,IAAY;IAC1C,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;AACjD,CAAC"}
|