@pnpm/plugin-commands-installation 14.2.1 → 14.2.2
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 +19 -19
- package/lib/dedupe.d.ts +15 -15
- package/lib/fetch.d.ts +8 -8
- package/lib/install.d.ts +15 -15
- package/lib/link.d.ts +7 -7
- package/lib/prune.d.ts +7 -7
- package/lib/remove.d.ts +6 -6
- package/lib/update/index.d.ts +20 -20
- package/lib/updateToLatestSpecFromManifest.d.ts +3 -0
- package/lib/updateToLatestSpecFromManifest.js +49 -0
- package/lib/updateToLatestSpecFromManifest.js.map +1 -0
- package/lib/updateToLatestSpecsFromManifest.d.ts +3 -0
- package/lib/updateToLatestSpecsFromManifest.js +49 -0
- package/lib/updateToLatestSpecsFromManifest.js.map +1 -0
- package/package.json +9 -9
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<"depth" | "dev" | "global" | "production" | "save" | "tag" | "optional" | "color" | "force" | "offline" | "registry" | "loglevel" | "only" | "cert" | "key" | "ca" | "globalconfig" | "userconfig" | "engine-strict" | "fetch-retries" | "fetch-retry-factor" | "fetch-retry-maxtimeout" | "fetch-retry-mintimeout" | "https-proxy" | "ignore-scripts" | "prefer-offline" | "proxy" | "scripts-prepend-node-path" | "unsafe-perm" | "dry-run" | "save-prod" | "save-dev" | "save-optional" | "script-shell" | "save-exact" | "save-prefix" | "node-version" | "local-address" | "no-proxy" | "strict-ssl" | "user-agent" | "package-lock", any>> & {
|
|
6
6
|
access: (string | null)[];
|
|
7
7
|
'allow-same-version': BooleanConstructor;
|
|
8
8
|
'always-auth': BooleanConstructor;
|
|
@@ -11,7 +11,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
11
11
|
'auth-type': string[];
|
|
12
12
|
'bin-links': BooleanConstructor;
|
|
13
13
|
browser: (StringConstructor | null)[];
|
|
14
|
-
ca: (
|
|
14
|
+
ca: (ArrayConstructor | StringConstructor | null)[];
|
|
15
15
|
cafile: import("path").PlatformPath;
|
|
16
16
|
cache: import("path").PlatformPath;
|
|
17
17
|
'cache-lock-stale': NumberConstructor;
|
|
@@ -20,7 +20,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
20
20
|
'cache-max': NumberConstructor;
|
|
21
21
|
'cache-min': NumberConstructor;
|
|
22
22
|
cert: (StringConstructor | null)[];
|
|
23
|
-
cidr: (
|
|
23
|
+
cidr: (ArrayConstructor | StringConstructor | null)[];
|
|
24
24
|
color: (string | BooleanConstructor)[];
|
|
25
25
|
depth: NumberConstructor;
|
|
26
26
|
description: BooleanConstructor;
|
|
@@ -39,7 +39,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
39
39
|
global: BooleanConstructor;
|
|
40
40
|
globalconfig: import("path").PlatformPath;
|
|
41
41
|
'global-style': BooleanConstructor;
|
|
42
|
-
group: (
|
|
42
|
+
group: (NumberConstructor | StringConstructor)[];
|
|
43
43
|
'https-proxy': (typeof import("url") | null)[];
|
|
44
44
|
'user-agent': StringConstructor;
|
|
45
45
|
'ham-it-up': BooleanConstructor;
|
|
@@ -67,7 +67,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
67
67
|
'metrics-registry': (StringConstructor | null)[];
|
|
68
68
|
'node-options': (StringConstructor | null)[];
|
|
69
69
|
'node-version': ((() => void) | null)[];
|
|
70
|
-
'no-proxy': (
|
|
70
|
+
'no-proxy': (ArrayConstructor | StringConstructor | null)[];
|
|
71
71
|
offline: BooleanConstructor;
|
|
72
72
|
'onload-script': (StringConstructor | null)[];
|
|
73
73
|
only: (string | null)[];
|
|
@@ -114,7 +114,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
114
114
|
unicode: BooleanConstructor;
|
|
115
115
|
'unsafe-perm': BooleanConstructor;
|
|
116
116
|
usage: BooleanConstructor;
|
|
117
|
-
user: (
|
|
117
|
+
user: (NumberConstructor | StringConstructor)[];
|
|
118
118
|
userconfig: import("path").PlatformPath;
|
|
119
119
|
umask: () => void;
|
|
120
120
|
version: BooleanConstructor;
|
|
@@ -122,33 +122,33 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
122
122
|
versions: BooleanConstructor;
|
|
123
123
|
viewer: StringConstructor;
|
|
124
124
|
_exit: BooleanConstructor;
|
|
125
|
-
}, "
|
|
125
|
+
}, "global" | "production" | "optional" | "force" | "offline" | "registry" | "only" | "engine-strict" | "fetch-retries" | "fetch-retry-factor" | "fetch-retry-maxtimeout" | "fetch-retry-mintimeout" | "https-proxy" | "ignore-scripts" | "prefer-offline" | "proxy" | "unsafe-perm" | "save-prod" | "save-dev" | "save-optional" | "save-exact" | "save-prefix">;
|
|
126
126
|
export declare function cliOptionsTypes(): {
|
|
127
127
|
recursive: BooleanConstructor;
|
|
128
128
|
save: BooleanConstructor;
|
|
129
129
|
workspace: BooleanConstructor;
|
|
130
|
-
registry: any;
|
|
131
|
-
optional: any;
|
|
132
|
-
force: any;
|
|
133
130
|
global: any;
|
|
134
131
|
production: any;
|
|
132
|
+
optional: any;
|
|
133
|
+
force: any;
|
|
135
134
|
offline: any;
|
|
135
|
+
registry: any;
|
|
136
136
|
only: any;
|
|
137
|
-
|
|
137
|
+
'engine-strict': any;
|
|
138
|
+
'fetch-retries': any;
|
|
139
|
+
'fetch-retry-factor': any;
|
|
140
|
+
'fetch-retry-maxtimeout': any;
|
|
141
|
+
'fetch-retry-mintimeout': any;
|
|
142
|
+
'https-proxy': any;
|
|
138
143
|
'ignore-scripts': any;
|
|
144
|
+
'prefer-offline': any;
|
|
145
|
+
proxy: any;
|
|
146
|
+
'unsafe-perm': any;
|
|
139
147
|
'save-prod': any;
|
|
140
148
|
'save-dev': any;
|
|
141
149
|
'save-optional': any;
|
|
142
|
-
'fetch-retries': any;
|
|
143
|
-
'fetch-retry-factor': any;
|
|
144
|
-
'fetch-retry-mintimeout': any;
|
|
145
|
-
'fetch-retry-maxtimeout': any;
|
|
146
150
|
'save-exact': any;
|
|
147
151
|
'save-prefix': any;
|
|
148
|
-
'engine-strict': any;
|
|
149
|
-
'unsafe-perm': 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<"depth" | "dev" | "global" | "production" | "save" | "tag" | "optional" | "color" | "force" | "offline" | "registry" | "loglevel" | "only" | "cert" | "key" | "ca" | "globalconfig" | "userconfig" | "engine-strict" | "fetch-retries" | "fetch-retry-factor" | "fetch-retry-maxtimeout" | "fetch-retry-mintimeout" | "https-proxy" | "ignore-scripts" | "prefer-offline" | "proxy" | "scripts-prepend-node-path" | "unsafe-perm" | "dry-run" | "save-prod" | "save-dev" | "save-optional" | "script-shell" | "save-exact" | "save-prefix" | "node-version" | "local-address" | "no-proxy" | "strict-ssl" | "user-agent" | "package-lock", any>> & {
|
|
6
6
|
access: (string | null)[];
|
|
7
7
|
'allow-same-version': BooleanConstructor;
|
|
8
8
|
'always-auth': BooleanConstructor;
|
|
@@ -11,7 +11,7 @@ export declare function rcOptionsTypes(): Omit<Pick<Partial<Record<"key" | "user
|
|
|
11
11
|
'auth-type': string[];
|
|
12
12
|
'bin-links': BooleanConstructor;
|
|
13
13
|
browser: (StringConstructor | null)[];
|
|
14
|
-
ca: (
|
|
14
|
+
ca: (ArrayConstructor | StringConstructor | null)[];
|
|
15
15
|
cafile: import("path").PlatformPath;
|
|
16
16
|
cache: import("path").PlatformPath;
|
|
17
17
|
'cache-lock-stale': NumberConstructor;
|
|
@@ -20,7 +20,7 @@ export declare function rcOptionsTypes(): Omit<Pick<Partial<Record<"key" | "user
|
|
|
20
20
|
'cache-max': NumberConstructor;
|
|
21
21
|
'cache-min': NumberConstructor;
|
|
22
22
|
cert: (StringConstructor | null)[];
|
|
23
|
-
cidr: (
|
|
23
|
+
cidr: (ArrayConstructor | StringConstructor | null)[];
|
|
24
24
|
color: (string | BooleanConstructor)[];
|
|
25
25
|
depth: NumberConstructor;
|
|
26
26
|
description: BooleanConstructor;
|
|
@@ -39,7 +39,7 @@ export declare function rcOptionsTypes(): Omit<Pick<Partial<Record<"key" | "user
|
|
|
39
39
|
global: BooleanConstructor;
|
|
40
40
|
globalconfig: import("path").PlatformPath;
|
|
41
41
|
'global-style': BooleanConstructor;
|
|
42
|
-
group: (
|
|
42
|
+
group: (NumberConstructor | StringConstructor)[];
|
|
43
43
|
'https-proxy': (typeof import("url") | null)[];
|
|
44
44
|
'user-agent': StringConstructor;
|
|
45
45
|
'ham-it-up': BooleanConstructor;
|
|
@@ -67,7 +67,7 @@ export declare function rcOptionsTypes(): Omit<Pick<Partial<Record<"key" | "user
|
|
|
67
67
|
'metrics-registry': (StringConstructor | null)[];
|
|
68
68
|
'node-options': (StringConstructor | null)[];
|
|
69
69
|
'node-version': ((() => void) | null)[];
|
|
70
|
-
'no-proxy': (
|
|
70
|
+
'no-proxy': (ArrayConstructor | StringConstructor | null)[];
|
|
71
71
|
offline: BooleanConstructor;
|
|
72
72
|
'onload-script': (StringConstructor | null)[];
|
|
73
73
|
only: (string | null)[];
|
|
@@ -114,7 +114,7 @@ export declare function rcOptionsTypes(): Omit<Pick<Partial<Record<"key" | "user
|
|
|
114
114
|
unicode: BooleanConstructor;
|
|
115
115
|
'unsafe-perm': BooleanConstructor;
|
|
116
116
|
usage: BooleanConstructor;
|
|
117
|
-
user: (
|
|
117
|
+
user: (NumberConstructor | StringConstructor)[];
|
|
118
118
|
userconfig: import("path").PlatformPath;
|
|
119
119
|
umask: () => void;
|
|
120
120
|
version: BooleanConstructor;
|
|
@@ -122,27 +122,27 @@ export declare function rcOptionsTypes(): Omit<Pick<Partial<Record<"key" | "user
|
|
|
122
122
|
versions: BooleanConstructor;
|
|
123
123
|
viewer: StringConstructor;
|
|
124
124
|
_exit: BooleanConstructor;
|
|
125
|
-
}, "
|
|
125
|
+
}, "dev" | "global" | "production" | "optional" | "offline" | "registry" | "only" | "engine-strict" | "fetch-retries" | "fetch-retry-factor" | "fetch-retry-maxtimeout" | "fetch-retry-mintimeout" | "https-proxy" | "ignore-scripts" | "prefer-offline" | "proxy" | "scripts-prepend-node-path" | "unsafe-perm">, "frozen-lockfile">;
|
|
126
126
|
export declare function cliOptionsTypes(): {
|
|
127
127
|
check: BooleanConstructor;
|
|
128
|
-
registry: any;
|
|
129
128
|
dev: any;
|
|
130
|
-
optional: any;
|
|
131
129
|
global: any;
|
|
132
130
|
production: any;
|
|
131
|
+
optional: any;
|
|
133
132
|
offline: any;
|
|
133
|
+
registry: any;
|
|
134
134
|
only: any;
|
|
135
|
-
|
|
136
|
-
'ignore-scripts': any;
|
|
135
|
+
'engine-strict': any;
|
|
137
136
|
'fetch-retries': any;
|
|
138
137
|
'fetch-retry-factor': any;
|
|
139
|
-
'fetch-retry-mintimeout': any;
|
|
140
138
|
'fetch-retry-maxtimeout': any;
|
|
139
|
+
'fetch-retry-mintimeout': any;
|
|
140
|
+
'https-proxy': any;
|
|
141
|
+
'ignore-scripts': any;
|
|
142
|
+
'prefer-offline': any;
|
|
143
|
+
proxy: any;
|
|
141
144
|
'scripts-prepend-node-path': any;
|
|
142
|
-
'engine-strict': any;
|
|
143
145
|
'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
9
|
dev: any;
|
|
11
|
-
optional: any;
|
|
12
10
|
global: any;
|
|
13
11
|
production: any;
|
|
12
|
+
optional: any;
|
|
14
13
|
offline: any;
|
|
14
|
+
registry: any;
|
|
15
15
|
only: any;
|
|
16
|
-
|
|
17
|
-
'ignore-scripts': any;
|
|
16
|
+
'engine-strict': any;
|
|
18
17
|
'fetch-retries': any;
|
|
19
18
|
'fetch-retry-factor': any;
|
|
20
|
-
'fetch-retry-mintimeout': any;
|
|
21
19
|
'fetch-retry-maxtimeout': any;
|
|
20
|
+
'fetch-retry-mintimeout': any;
|
|
21
|
+
'https-proxy': any;
|
|
22
|
+
'ignore-scripts': any;
|
|
23
|
+
'prefer-offline': any;
|
|
24
|
+
proxy: any;
|
|
22
25
|
'scripts-prepend-node-path': any;
|
|
23
|
-
'engine-strict': any;
|
|
24
26
|
'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<"depth" | "dev" | "global" | "production" | "save" | "tag" | "optional" | "color" | "force" | "offline" | "registry" | "loglevel" | "only" | "cert" | "key" | "ca" | "globalconfig" | "userconfig" | "engine-strict" | "fetch-retries" | "fetch-retry-factor" | "fetch-retry-maxtimeout" | "fetch-retry-mintimeout" | "https-proxy" | "ignore-scripts" | "prefer-offline" | "proxy" | "scripts-prepend-node-path" | "unsafe-perm" | "dry-run" | "save-prod" | "save-dev" | "save-optional" | "script-shell" | "save-exact" | "save-prefix" | "node-version" | "local-address" | "no-proxy" | "strict-ssl" | "user-agent" | "package-lock", any>> & {
|
|
7
7
|
access: (string | null)[];
|
|
8
8
|
'allow-same-version': BooleanConstructor;
|
|
9
9
|
'always-auth': BooleanConstructor;
|
|
@@ -12,7 +12,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
12
12
|
'auth-type': string[];
|
|
13
13
|
'bin-links': BooleanConstructor;
|
|
14
14
|
browser: (StringConstructor | null)[];
|
|
15
|
-
ca: (
|
|
15
|
+
ca: (ArrayConstructor | StringConstructor | null)[];
|
|
16
16
|
cafile: import("path").PlatformPath;
|
|
17
17
|
cache: import("path").PlatformPath;
|
|
18
18
|
'cache-lock-stale': NumberConstructor;
|
|
@@ -21,7 +21,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
21
21
|
'cache-max': NumberConstructor;
|
|
22
22
|
'cache-min': NumberConstructor;
|
|
23
23
|
cert: (StringConstructor | null)[];
|
|
24
|
-
cidr: (
|
|
24
|
+
cidr: (ArrayConstructor | StringConstructor | null)[];
|
|
25
25
|
color: (string | BooleanConstructor)[];
|
|
26
26
|
depth: NumberConstructor;
|
|
27
27
|
description: BooleanConstructor;
|
|
@@ -40,7 +40,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
40
40
|
global: BooleanConstructor;
|
|
41
41
|
globalconfig: import("path").PlatformPath;
|
|
42
42
|
'global-style': BooleanConstructor;
|
|
43
|
-
group: (
|
|
43
|
+
group: (NumberConstructor | StringConstructor)[];
|
|
44
44
|
'https-proxy': (typeof import("url") | null)[];
|
|
45
45
|
'user-agent': StringConstructor;
|
|
46
46
|
'ham-it-up': BooleanConstructor;
|
|
@@ -68,7 +68,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
68
68
|
'metrics-registry': (StringConstructor | null)[];
|
|
69
69
|
'node-options': (StringConstructor | null)[];
|
|
70
70
|
'node-version': ((() => void) | null)[];
|
|
71
|
-
'no-proxy': (
|
|
71
|
+
'no-proxy': (ArrayConstructor | StringConstructor | null)[];
|
|
72
72
|
offline: BooleanConstructor;
|
|
73
73
|
'onload-script': (StringConstructor | null)[];
|
|
74
74
|
only: (string | null)[];
|
|
@@ -115,7 +115,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
115
115
|
unicode: BooleanConstructor;
|
|
116
116
|
'unsafe-perm': BooleanConstructor;
|
|
117
117
|
usage: BooleanConstructor;
|
|
118
|
-
user: (
|
|
118
|
+
user: (NumberConstructor | StringConstructor)[];
|
|
119
119
|
userconfig: import("path").PlatformPath;
|
|
120
120
|
umask: () => void;
|
|
121
121
|
version: BooleanConstructor;
|
|
@@ -123,30 +123,30 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
123
123
|
versions: BooleanConstructor;
|
|
124
124
|
viewer: StringConstructor;
|
|
125
125
|
_exit: BooleanConstructor;
|
|
126
|
-
}, "
|
|
126
|
+
}, "dev" | "global" | "production" | "optional" | "offline" | "registry" | "only" | "engine-strict" | "fetch-retries" | "fetch-retry-factor" | "fetch-retry-maxtimeout" | "fetch-retry-mintimeout" | "https-proxy" | "ignore-scripts" | "prefer-offline" | "proxy" | "scripts-prepend-node-path" | "unsafe-perm">;
|
|
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
132
|
dev: any;
|
|
134
|
-
optional: any;
|
|
135
133
|
global: any;
|
|
136
134
|
production: any;
|
|
135
|
+
optional: any;
|
|
137
136
|
offline: any;
|
|
137
|
+
registry: any;
|
|
138
138
|
only: any;
|
|
139
|
-
|
|
140
|
-
'ignore-scripts': any;
|
|
139
|
+
'engine-strict': any;
|
|
141
140
|
'fetch-retries': any;
|
|
142
141
|
'fetch-retry-factor': any;
|
|
143
|
-
'fetch-retry-mintimeout': any;
|
|
144
142
|
'fetch-retry-maxtimeout': any;
|
|
143
|
+
'fetch-retry-mintimeout': any;
|
|
144
|
+
'https-proxy': any;
|
|
145
|
+
'ignore-scripts': any;
|
|
146
|
+
'prefer-offline': any;
|
|
147
|
+
proxy: any;
|
|
145
148
|
'scripts-prepend-node-path': any;
|
|
146
|
-
'engine-strict': any;
|
|
147
149
|
'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<"depth" | "dev" | "global" | "production" | "save" | "tag" | "optional" | "color" | "force" | "offline" | "registry" | "loglevel" | "only" | "cert" | "key" | "ca" | "globalconfig" | "userconfig" | "engine-strict" | "fetch-retries" | "fetch-retry-factor" | "fetch-retry-maxtimeout" | "fetch-retry-mintimeout" | "https-proxy" | "ignore-scripts" | "prefer-offline" | "proxy" | "scripts-prepend-node-path" | "unsafe-perm" | "dry-run" | "save-prod" | "save-dev" | "save-optional" | "script-shell" | "save-exact" | "save-prefix" | "node-version" | "local-address" | "no-proxy" | "strict-ssl" | "user-agent" | "package-lock", any>> & {
|
|
10
10
|
access: (string | null)[];
|
|
11
11
|
'allow-same-version': BooleanConstructor;
|
|
12
12
|
'always-auth': BooleanConstructor;
|
|
@@ -15,7 +15,7 @@ export declare function cliOptionsTypes(): Pick<Partial<Record<"key" | "user-age
|
|
|
15
15
|
'auth-type': string[];
|
|
16
16
|
'bin-links': BooleanConstructor;
|
|
17
17
|
browser: (StringConstructor | null)[];
|
|
18
|
-
ca: (
|
|
18
|
+
ca: (ArrayConstructor | StringConstructor | null)[];
|
|
19
19
|
cafile: path.PlatformPath;
|
|
20
20
|
cache: path.PlatformPath;
|
|
21
21
|
'cache-lock-stale': NumberConstructor;
|
|
@@ -24,7 +24,7 @@ export declare function cliOptionsTypes(): Pick<Partial<Record<"key" | "user-age
|
|
|
24
24
|
'cache-max': NumberConstructor;
|
|
25
25
|
'cache-min': NumberConstructor;
|
|
26
26
|
cert: (StringConstructor | null)[];
|
|
27
|
-
cidr: (
|
|
27
|
+
cidr: (ArrayConstructor | StringConstructor | null)[];
|
|
28
28
|
color: (string | BooleanConstructor)[];
|
|
29
29
|
depth: NumberConstructor;
|
|
30
30
|
description: BooleanConstructor;
|
|
@@ -43,7 +43,7 @@ export declare function cliOptionsTypes(): Pick<Partial<Record<"key" | "user-age
|
|
|
43
43
|
global: BooleanConstructor;
|
|
44
44
|
globalconfig: path.PlatformPath;
|
|
45
45
|
'global-style': BooleanConstructor;
|
|
46
|
-
group: (
|
|
46
|
+
group: (NumberConstructor | StringConstructor)[];
|
|
47
47
|
'https-proxy': (typeof import("url") | null)[];
|
|
48
48
|
'user-agent': StringConstructor;
|
|
49
49
|
'ham-it-up': BooleanConstructor;
|
|
@@ -71,7 +71,7 @@ export declare function cliOptionsTypes(): Pick<Partial<Record<"key" | "user-age
|
|
|
71
71
|
'metrics-registry': (StringConstructor | null)[];
|
|
72
72
|
'node-options': (StringConstructor | null)[];
|
|
73
73
|
'node-version': ((() => void) | null)[];
|
|
74
|
-
'no-proxy': (
|
|
74
|
+
'no-proxy': (ArrayConstructor | StringConstructor | null)[];
|
|
75
75
|
offline: BooleanConstructor;
|
|
76
76
|
'onload-script': (StringConstructor | null)[];
|
|
77
77
|
only: (string | null)[];
|
|
@@ -118,7 +118,7 @@ export declare function cliOptionsTypes(): Pick<Partial<Record<"key" | "user-age
|
|
|
118
118
|
unicode: BooleanConstructor;
|
|
119
119
|
'unsafe-perm': BooleanConstructor;
|
|
120
120
|
usage: BooleanConstructor;
|
|
121
|
-
user: (
|
|
121
|
+
user: (NumberConstructor | StringConstructor)[];
|
|
122
122
|
userconfig: path.PlatformPath;
|
|
123
123
|
umask: () => void;
|
|
124
124
|
version: BooleanConstructor;
|
|
@@ -126,7 +126,7 @@ export declare function cliOptionsTypes(): Pick<Partial<Record<"key" | "user-age
|
|
|
126
126
|
versions: BooleanConstructor;
|
|
127
127
|
viewer: StringConstructor;
|
|
128
128
|
_exit: BooleanConstructor;
|
|
129
|
-
}, "
|
|
129
|
+
}, "global" | "production" | "registry" | "only" | "unsafe-perm" | "save-dev" | "save-optional" | "save-exact" | "save-prefix">;
|
|
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<"depth" | "dev" | "global" | "production" | "save" | "tag" | "optional" | "color" | "force" | "offline" | "registry" | "loglevel" | "only" | "cert" | "key" | "ca" | "globalconfig" | "userconfig" | "engine-strict" | "fetch-retries" | "fetch-retry-factor" | "fetch-retry-maxtimeout" | "fetch-retry-mintimeout" | "https-proxy" | "ignore-scripts" | "prefer-offline" | "proxy" | "scripts-prepend-node-path" | "unsafe-perm" | "dry-run" | "save-prod" | "save-dev" | "save-optional" | "script-shell" | "save-exact" | "save-prefix" | "node-version" | "local-address" | "no-proxy" | "strict-ssl" | "user-agent" | "package-lock", any>> & {
|
|
7
7
|
access: (string | null)[];
|
|
8
8
|
'allow-same-version': BooleanConstructor;
|
|
9
9
|
'always-auth': BooleanConstructor;
|
|
@@ -12,7 +12,7 @@ export declare function cliOptionsTypes(): Pick<Partial<Record<"key" | "user-age
|
|
|
12
12
|
'auth-type': string[];
|
|
13
13
|
'bin-links': BooleanConstructor;
|
|
14
14
|
browser: (StringConstructor | null)[];
|
|
15
|
-
ca: (
|
|
15
|
+
ca: (ArrayConstructor | StringConstructor | null)[];
|
|
16
16
|
cafile: import("path").PlatformPath;
|
|
17
17
|
cache: import("path").PlatformPath;
|
|
18
18
|
'cache-lock-stale': NumberConstructor;
|
|
@@ -21,7 +21,7 @@ export declare function cliOptionsTypes(): Pick<Partial<Record<"key" | "user-age
|
|
|
21
21
|
'cache-max': NumberConstructor;
|
|
22
22
|
'cache-min': NumberConstructor;
|
|
23
23
|
cert: (StringConstructor | null)[];
|
|
24
|
-
cidr: (
|
|
24
|
+
cidr: (ArrayConstructor | StringConstructor | null)[];
|
|
25
25
|
color: (string | BooleanConstructor)[];
|
|
26
26
|
depth: NumberConstructor;
|
|
27
27
|
description: BooleanConstructor;
|
|
@@ -40,7 +40,7 @@ export declare function cliOptionsTypes(): Pick<Partial<Record<"key" | "user-age
|
|
|
40
40
|
global: BooleanConstructor;
|
|
41
41
|
globalconfig: import("path").PlatformPath;
|
|
42
42
|
'global-style': BooleanConstructor;
|
|
43
|
-
group: (
|
|
43
|
+
group: (NumberConstructor | StringConstructor)[];
|
|
44
44
|
'https-proxy': (typeof import("url") | null)[];
|
|
45
45
|
'user-agent': StringConstructor;
|
|
46
46
|
'ham-it-up': BooleanConstructor;
|
|
@@ -68,7 +68,7 @@ export declare function cliOptionsTypes(): Pick<Partial<Record<"key" | "user-age
|
|
|
68
68
|
'metrics-registry': (StringConstructor | null)[];
|
|
69
69
|
'node-options': (StringConstructor | null)[];
|
|
70
70
|
'node-version': ((() => void) | null)[];
|
|
71
|
-
'no-proxy': (
|
|
71
|
+
'no-proxy': (ArrayConstructor | StringConstructor | null)[];
|
|
72
72
|
offline: BooleanConstructor;
|
|
73
73
|
'onload-script': (StringConstructor | null)[];
|
|
74
74
|
only: (string | null)[];
|
|
@@ -115,7 +115,7 @@ export declare function cliOptionsTypes(): Pick<Partial<Record<"key" | "user-age
|
|
|
115
115
|
unicode: BooleanConstructor;
|
|
116
116
|
'unsafe-perm': BooleanConstructor;
|
|
117
117
|
usage: BooleanConstructor;
|
|
118
|
-
user: (
|
|
118
|
+
user: (NumberConstructor | StringConstructor)[];
|
|
119
119
|
userconfig: import("path").PlatformPath;
|
|
120
120
|
umask: () => void;
|
|
121
121
|
version: BooleanConstructor;
|
|
@@ -123,7 +123,7 @@ export declare function cliOptionsTypes(): Pick<Partial<Record<"key" | "user-age
|
|
|
123
123
|
versions: BooleanConstructor;
|
|
124
124
|
viewer: StringConstructor;
|
|
125
125
|
_exit: BooleanConstructor;
|
|
126
|
-
}, "dev" | "
|
|
126
|
+
}, "dev" | "production" | "optional">;
|
|
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/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<"depth" | "dev" | "global" | "production" | "save" | "tag" | "optional" | "color" | "force" | "offline" | "registry" | "loglevel" | "only" | "cert" | "key" | "ca" | "globalconfig" | "userconfig" | "engine-strict" | "fetch-retries" | "fetch-retry-factor" | "fetch-retry-maxtimeout" | "fetch-retry-mintimeout" | "https-proxy" | "ignore-scripts" | "prefer-offline" | "proxy" | "scripts-prepend-node-path" | "unsafe-perm" | "dry-run" | "save-prod" | "save-dev" | "save-optional" | "script-shell" | "save-exact" | "save-prefix" | "node-version" | "local-address" | "no-proxy" | "strict-ssl" | "user-agent" | "package-lock", any>> & {
|
|
8
8
|
access: (string | null)[];
|
|
9
9
|
'allow-same-version': BooleanConstructor;
|
|
10
10
|
'always-auth': BooleanConstructor;
|
|
@@ -13,7 +13,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
13
13
|
'auth-type': string[];
|
|
14
14
|
'bin-links': BooleanConstructor;
|
|
15
15
|
browser: (StringConstructor | null)[];
|
|
16
|
-
ca: (
|
|
16
|
+
ca: (ArrayConstructor | StringConstructor | null)[];
|
|
17
17
|
cafile: import("path").PlatformPath;
|
|
18
18
|
cache: import("path").PlatformPath;
|
|
19
19
|
'cache-lock-stale': NumberConstructor;
|
|
@@ -22,7 +22,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
22
22
|
'cache-max': NumberConstructor;
|
|
23
23
|
'cache-min': NumberConstructor;
|
|
24
24
|
cert: (StringConstructor | null)[];
|
|
25
|
-
cidr: (
|
|
25
|
+
cidr: (ArrayConstructor | StringConstructor | null)[];
|
|
26
26
|
color: (string | BooleanConstructor)[];
|
|
27
27
|
depth: NumberConstructor;
|
|
28
28
|
description: BooleanConstructor;
|
|
@@ -41,7 +41,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
41
41
|
global: BooleanConstructor;
|
|
42
42
|
globalconfig: import("path").PlatformPath;
|
|
43
43
|
'global-style': BooleanConstructor;
|
|
44
|
-
group: (
|
|
44
|
+
group: (NumberConstructor | StringConstructor)[];
|
|
45
45
|
'https-proxy': (typeof import("url") | null)[];
|
|
46
46
|
'user-agent': StringConstructor;
|
|
47
47
|
'ham-it-up': BooleanConstructor;
|
|
@@ -69,7 +69,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
69
69
|
'metrics-registry': (StringConstructor | null)[];
|
|
70
70
|
'node-options': (StringConstructor | null)[];
|
|
71
71
|
'node-version': ((() => void) | null)[];
|
|
72
|
-
'no-proxy': (
|
|
72
|
+
'no-proxy': (ArrayConstructor | StringConstructor | null)[];
|
|
73
73
|
offline: BooleanConstructor;
|
|
74
74
|
'onload-script': (StringConstructor | null)[];
|
|
75
75
|
only: (string | null)[];
|
|
@@ -116,7 +116,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
116
116
|
unicode: BooleanConstructor;
|
|
117
117
|
'unsafe-perm': BooleanConstructor;
|
|
118
118
|
usage: BooleanConstructor;
|
|
119
|
-
user: (
|
|
119
|
+
user: (NumberConstructor | StringConstructor)[];
|
|
120
120
|
userconfig: import("path").PlatformPath;
|
|
121
121
|
umask: () => void;
|
|
122
122
|
version: 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<"depth" | "dev" | "global" | "production" | "save" | "tag" | "optional" | "color" | "force" | "offline" | "registry" | "loglevel" | "only" | "cert" | "key" | "ca" | "globalconfig" | "userconfig" | "engine-strict" | "fetch-retries" | "fetch-retry-factor" | "fetch-retry-maxtimeout" | "fetch-retry-mintimeout" | "https-proxy" | "ignore-scripts" | "prefer-offline" | "proxy" | "scripts-prepend-node-path" | "unsafe-perm" | "dry-run" | "save-prod" | "save-dev" | "save-optional" | "script-shell" | "save-exact" | "save-prefix" | "node-version" | "local-address" | "no-proxy" | "strict-ssl" | "user-agent" | "package-lock", any>> & {
|
|
7
7
|
access: (string | null)[];
|
|
8
8
|
'allow-same-version': BooleanConstructor;
|
|
9
9
|
'always-auth': BooleanConstructor;
|
|
@@ -12,7 +12,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
12
12
|
'auth-type': string[];
|
|
13
13
|
'bin-links': BooleanConstructor;
|
|
14
14
|
browser: (StringConstructor | null)[];
|
|
15
|
-
ca: (
|
|
15
|
+
ca: (ArrayConstructor | StringConstructor | null)[];
|
|
16
16
|
cafile: import("path").PlatformPath;
|
|
17
17
|
cache: import("path").PlatformPath;
|
|
18
18
|
'cache-lock-stale': NumberConstructor;
|
|
@@ -21,7 +21,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
21
21
|
'cache-max': NumberConstructor;
|
|
22
22
|
'cache-min': NumberConstructor;
|
|
23
23
|
cert: (StringConstructor | null)[];
|
|
24
|
-
cidr: (
|
|
24
|
+
cidr: (ArrayConstructor | StringConstructor | null)[];
|
|
25
25
|
color: (string | BooleanConstructor)[];
|
|
26
26
|
depth: NumberConstructor;
|
|
27
27
|
description: BooleanConstructor;
|
|
@@ -40,7 +40,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
40
40
|
global: BooleanConstructor;
|
|
41
41
|
globalconfig: import("path").PlatformPath;
|
|
42
42
|
'global-style': BooleanConstructor;
|
|
43
|
-
group: (
|
|
43
|
+
group: (NumberConstructor | StringConstructor)[];
|
|
44
44
|
'https-proxy': (typeof import("url") | null)[];
|
|
45
45
|
'user-agent': StringConstructor;
|
|
46
46
|
'ham-it-up': BooleanConstructor;
|
|
@@ -68,7 +68,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
68
68
|
'metrics-registry': (StringConstructor | null)[];
|
|
69
69
|
'node-options': (StringConstructor | null)[];
|
|
70
70
|
'node-version': ((() => void) | null)[];
|
|
71
|
-
'no-proxy': (
|
|
71
|
+
'no-proxy': (ArrayConstructor | StringConstructor | null)[];
|
|
72
72
|
offline: BooleanConstructor;
|
|
73
73
|
'onload-script': (StringConstructor | null)[];
|
|
74
74
|
only: (string | null)[];
|
|
@@ -115,7 +115,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
115
115
|
unicode: BooleanConstructor;
|
|
116
116
|
'unsafe-perm': BooleanConstructor;
|
|
117
117
|
usage: BooleanConstructor;
|
|
118
|
-
user: (
|
|
118
|
+
user: (NumberConstructor | StringConstructor)[];
|
|
119
119
|
userconfig: import("path").PlatformPath;
|
|
120
120
|
umask: () => void;
|
|
121
121
|
version: BooleanConstructor;
|
|
@@ -123,35 +123,35 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"key" | "user-agen
|
|
|
123
123
|
versions: BooleanConstructor;
|
|
124
124
|
viewer: StringConstructor;
|
|
125
125
|
_exit: BooleanConstructor;
|
|
126
|
-
}, "
|
|
126
|
+
}, "depth" | "dev" | "global" | "production" | "save" | "optional" | "force" | "offline" | "registry" | "only" | "engine-strict" | "fetch-retries" | "fetch-retry-factor" | "fetch-retry-maxtimeout" | "fetch-retry-mintimeout" | "https-proxy" | "ignore-scripts" | "prefer-offline" | "proxy" | "scripts-prepend-node-path" | "unsafe-perm" | "save-exact" | "save-prefix">;
|
|
127
127
|
export declare function cliOptionsTypes(): {
|
|
128
128
|
interactive: BooleanConstructor;
|
|
129
129
|
latest: BooleanConstructor;
|
|
130
130
|
recursive: BooleanConstructor;
|
|
131
131
|
workspace: BooleanConstructor;
|
|
132
|
-
|
|
132
|
+
depth: any;
|
|
133
133
|
dev: any;
|
|
134
|
-
optional: any;
|
|
135
|
-
force: any;
|
|
136
134
|
global: any;
|
|
137
|
-
save: any;
|
|
138
135
|
production: any;
|
|
139
|
-
|
|
136
|
+
save: any;
|
|
137
|
+
optional: any;
|
|
138
|
+
force: any;
|
|
140
139
|
offline: any;
|
|
140
|
+
registry: any;
|
|
141
141
|
only: any;
|
|
142
|
-
|
|
143
|
-
'ignore-scripts': any;
|
|
142
|
+
'engine-strict': any;
|
|
144
143
|
'fetch-retries': any;
|
|
145
144
|
'fetch-retry-factor': any;
|
|
146
|
-
'fetch-retry-mintimeout': any;
|
|
147
145
|
'fetch-retry-maxtimeout': any;
|
|
148
|
-
'
|
|
149
|
-
'
|
|
146
|
+
'fetch-retry-mintimeout': any;
|
|
147
|
+
'https-proxy': any;
|
|
148
|
+
'ignore-scripts': any;
|
|
149
|
+
'prefer-offline': any;
|
|
150
|
+
proxy: any;
|
|
150
151
|
'scripts-prepend-node-path': any;
|
|
151
|
-
'engine-strict': any;
|
|
152
152
|
'unsafe-perm': any;
|
|
153
|
-
'
|
|
154
|
-
'
|
|
153
|
+
'save-exact': any;
|
|
154
|
+
'save-prefix': any;
|
|
155
155
|
};
|
|
156
156
|
export declare const shorthands: {
|
|
157
157
|
D: string;
|
|
@@ -0,0 +1,3 @@
|
|
|
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[];
|
|
@@ -0,0 +1,49 @@
|
|
|
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=updateToLatestSpecFromManifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateToLatestSpecFromManifest.js","sourceRoot":"","sources":["../src/updateToLatestSpecFromManifest.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,CAAC;QAC5D,IAAI,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;YAClC,WAAW,CAAC,IAAI,CAAC,GAAG,OAAO,IAAI,qBAAqB,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA;QAC5E,CAAC;aAAM,CAAC;YACN,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;QACvC,CAAC;IACH,CAAC;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,CAAC;YAC9B,OAAO,QAAQ,CAAA;QACjB,CAAC;QACD,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;YACzC,OAAO,GAAG,QAAQ,IAAI,qBAAqB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAA;QACzE,CAAC;QACD,IAAI,IAAA,+BAAa,EAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC;YAC7C,OAAO,QAAQ,CAAA;QACjB,CAAC;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"}
|
|
@@ -0,0 +1,3 @@
|
|
|
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[];
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,CAAC;QAC5D,IAAI,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;YAClC,WAAW,CAAC,IAAI,CAAC,GAAG,OAAO,IAAI,qBAAqB,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA;QAC5E,CAAC;aAAM,CAAC;YACN,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;QACvC,CAAC;IACH,CAAC;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,CAAC;YAC9B,OAAO,QAAQ,CAAA;QACjB,CAAC;QACD,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;YACzC,OAAO,GAAG,QAAQ,IAAI,qBAAqB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAA;QACzE,CAAC;QACD,IAAI,IAAA,+BAAa,EAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC;YAC7C,OAAO,QAAQ,CAAA;QACjB,CAAC;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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/plugin-commands-installation",
|
|
3
|
-
"version": "14.2.
|
|
3
|
+
"version": "14.2.2",
|
|
4
4
|
"description": "Commands for installation",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/plugin-commands-installation#readme",
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@pnpm/registry-mock": "3.
|
|
25
|
+
"@pnpm/registry-mock": "3.20.0",
|
|
26
26
|
"@types/proxyquire": "^1.3.31",
|
|
27
27
|
"@types/ramda": "0.28.20",
|
|
28
28
|
"@types/sinon": "^10.0.20",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"write-yaml-file": "^5.0.0",
|
|
42
42
|
"@pnpm/assert-project": "2.3.46",
|
|
43
43
|
"@pnpm/modules-yaml": "12.1.7",
|
|
44
|
-
"@pnpm/plugin-commands-installation": "14.2.
|
|
44
|
+
"@pnpm/plugin-commands-installation": "14.2.2",
|
|
45
45
|
"@pnpm/prepare": "0.0.89",
|
|
46
46
|
"@pnpm/test-fixtures": "0.1.19",
|
|
47
47
|
"@pnpm/test-ipc-server": "0.0.0"
|
|
@@ -73,27 +73,27 @@
|
|
|
73
73
|
"@pnpm/common-cli-options-help": "1.1.0",
|
|
74
74
|
"@pnpm/config": "20.4.2",
|
|
75
75
|
"@pnpm/constants": "7.1.1",
|
|
76
|
-
"@pnpm/core": "13.4.
|
|
76
|
+
"@pnpm/core": "13.4.2",
|
|
77
77
|
"@pnpm/dedupe.check": "1.0.7",
|
|
78
78
|
"@pnpm/error": "5.0.2",
|
|
79
79
|
"@pnpm/filter-workspace-packages": "7.2.11",
|
|
80
80
|
"@pnpm/find-workspace-dir": "6.0.2",
|
|
81
81
|
"@pnpm/graceful-fs": "3.2.0",
|
|
82
|
-
"@pnpm/matcher": "5.0.0",
|
|
83
82
|
"@pnpm/lockfile-types": "5.1.5",
|
|
84
83
|
"@pnpm/manifest-utils": "5.0.7",
|
|
85
|
-
"@pnpm/
|
|
84
|
+
"@pnpm/matcher": "5.0.0",
|
|
86
85
|
"@pnpm/package-store": "19.0.15",
|
|
86
|
+
"@pnpm/outdated": "13.0.42",
|
|
87
87
|
"@pnpm/parse-wanted-dependency": "5.0.0",
|
|
88
88
|
"@pnpm/plugin-commands-rebuild": "10.0.18",
|
|
89
|
-
"@pnpm/pnpmfile": "5.0.20",
|
|
90
89
|
"@pnpm/resolver-base": "11.1.0",
|
|
90
|
+
"@pnpm/pnpmfile": "5.0.20",
|
|
91
91
|
"@pnpm/read-project-manifest": "5.0.10",
|
|
92
92
|
"@pnpm/sort-packages": "5.0.9",
|
|
93
|
+
"@pnpm/store-connection-manager": "7.0.26",
|
|
93
94
|
"@pnpm/types": "9.4.2",
|
|
94
95
|
"@pnpm/workspace.find-packages": "1.1.10",
|
|
95
|
-
"@pnpm/workspace.pkgs-graph": "2.0.14"
|
|
96
|
-
"@pnpm/store-connection-manager": "7.0.26"
|
|
96
|
+
"@pnpm/workspace.pkgs-graph": "2.0.14"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
99
|
"@pnpm/logger": "^5.0.0"
|