@pnpm/plugin-commands-installation 14.2.2 → 14.2.3
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/package.json +8 -8
- package/lib/updateToLatestSpecFromManifest.d.ts +0 -3
- package/lib/updateToLatestSpecFromManifest.js +0 -49
- package/lib/updateToLatestSpecFromManifest.js.map +0 -1
- 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;
|
|
@@ -11,7 +11,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"depth" | "dev" |
|
|
|
11
11
|
'auth-type': string[];
|
|
12
12
|
'bin-links': BooleanConstructor;
|
|
13
13
|
browser: (StringConstructor | null)[];
|
|
14
|
-
ca: (
|
|
14
|
+
ca: (StringConstructor | ArrayConstructor | 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<"depth" | "dev" |
|
|
|
20
20
|
'cache-max': NumberConstructor;
|
|
21
21
|
'cache-min': NumberConstructor;
|
|
22
22
|
cert: (StringConstructor | null)[];
|
|
23
|
-
cidr: (
|
|
23
|
+
cidr: (StringConstructor | ArrayConstructor | 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<"depth" | "dev" |
|
|
|
39
39
|
global: BooleanConstructor;
|
|
40
40
|
globalconfig: import("path").PlatformPath;
|
|
41
41
|
'global-style': BooleanConstructor;
|
|
42
|
-
group: (
|
|
42
|
+
group: (StringConstructor | NumberConstructor)[];
|
|
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<"depth" | "dev" |
|
|
|
67
67
|
'metrics-registry': (StringConstructor | null)[];
|
|
68
68
|
'node-options': (StringConstructor | null)[];
|
|
69
69
|
'node-version': ((() => void) | null)[];
|
|
70
|
-
'no-proxy': (
|
|
70
|
+
'no-proxy': (StringConstructor | ArrayConstructor | 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<"depth" | "dev" |
|
|
|
114
114
|
unicode: BooleanConstructor;
|
|
115
115
|
'unsafe-perm': BooleanConstructor;
|
|
116
116
|
usage: BooleanConstructor;
|
|
117
|
-
user: (
|
|
117
|
+
user: (StringConstructor | NumberConstructor)[];
|
|
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<"depth" | "dev" |
|
|
|
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
|
-
|
|
131
|
-
production: any;
|
|
130
|
+
registry: any;
|
|
132
131
|
optional: any;
|
|
133
132
|
force: any;
|
|
133
|
+
global: any;
|
|
134
|
+
production: any;
|
|
134
135
|
offline: any;
|
|
135
|
-
registry: any;
|
|
136
136
|
only: any;
|
|
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;
|
|
143
|
-
'ignore-scripts': any;
|
|
144
|
-
'prefer-offline': any;
|
|
145
137
|
proxy: any;
|
|
146
|
-
'
|
|
138
|
+
'ignore-scripts': any;
|
|
147
139
|
'save-prod': any;
|
|
148
140
|
'save-dev': any;
|
|
149
141
|
'save-optional': any;
|
|
142
|
+
'fetch-retries': any;
|
|
143
|
+
'fetch-retry-factor': any;
|
|
144
|
+
'fetch-retry-mintimeout': any;
|
|
145
|
+
'fetch-retry-maxtimeout': any;
|
|
150
146
|
'save-exact': any;
|
|
151
147
|
'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<"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;
|
|
@@ -11,7 +11,7 @@ export declare function rcOptionsTypes(): Omit<Pick<Partial<Record<"depth" | "de
|
|
|
11
11
|
'auth-type': string[];
|
|
12
12
|
'bin-links': BooleanConstructor;
|
|
13
13
|
browser: (StringConstructor | null)[];
|
|
14
|
-
ca: (
|
|
14
|
+
ca: (StringConstructor | ArrayConstructor | 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<"depth" | "de
|
|
|
20
20
|
'cache-max': NumberConstructor;
|
|
21
21
|
'cache-min': NumberConstructor;
|
|
22
22
|
cert: (StringConstructor | null)[];
|
|
23
|
-
cidr: (
|
|
23
|
+
cidr: (StringConstructor | ArrayConstructor | 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<"depth" | "de
|
|
|
39
39
|
global: BooleanConstructor;
|
|
40
40
|
globalconfig: import("path").PlatformPath;
|
|
41
41
|
'global-style': BooleanConstructor;
|
|
42
|
-
group: (
|
|
42
|
+
group: (StringConstructor | NumberConstructor)[];
|
|
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<"depth" | "de
|
|
|
67
67
|
'metrics-registry': (StringConstructor | null)[];
|
|
68
68
|
'node-options': (StringConstructor | null)[];
|
|
69
69
|
'node-version': ((() => void) | null)[];
|
|
70
|
-
'no-proxy': (
|
|
70
|
+
'no-proxy': (StringConstructor | ArrayConstructor | 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<"depth" | "de
|
|
|
114
114
|
unicode: BooleanConstructor;
|
|
115
115
|
'unsafe-perm': BooleanConstructor;
|
|
116
116
|
usage: BooleanConstructor;
|
|
117
|
-
user: (
|
|
117
|
+
user: (StringConstructor | NumberConstructor)[];
|
|
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<"depth" | "de
|
|
|
122
122
|
versions: BooleanConstructor;
|
|
123
123
|
viewer: StringConstructor;
|
|
124
124
|
_exit: BooleanConstructor;
|
|
125
|
-
}, "dev" | "
|
|
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;
|
|
128
129
|
dev: any;
|
|
130
|
+
optional: any;
|
|
129
131
|
global: any;
|
|
130
132
|
production: any;
|
|
131
|
-
optional: any;
|
|
132
133
|
offline: any;
|
|
133
|
-
registry: any;
|
|
134
134
|
only: any;
|
|
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;
|
|
9
10
|
dev: any;
|
|
11
|
+
optional: any;
|
|
10
12
|
global: any;
|
|
11
13
|
production: any;
|
|
12
|
-
optional: any;
|
|
13
14
|
offline: any;
|
|
14
|
-
registry: any;
|
|
15
15
|
only: any;
|
|
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;
|
|
@@ -12,7 +12,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"depth" | "dev" |
|
|
|
12
12
|
'auth-type': string[];
|
|
13
13
|
'bin-links': BooleanConstructor;
|
|
14
14
|
browser: (StringConstructor | null)[];
|
|
15
|
-
ca: (
|
|
15
|
+
ca: (StringConstructor | ArrayConstructor | 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<"depth" | "dev" |
|
|
|
21
21
|
'cache-max': NumberConstructor;
|
|
22
22
|
'cache-min': NumberConstructor;
|
|
23
23
|
cert: (StringConstructor | null)[];
|
|
24
|
-
cidr: (
|
|
24
|
+
cidr: (StringConstructor | ArrayConstructor | 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<"depth" | "dev" |
|
|
|
40
40
|
global: BooleanConstructor;
|
|
41
41
|
globalconfig: import("path").PlatformPath;
|
|
42
42
|
'global-style': BooleanConstructor;
|
|
43
|
-
group: (
|
|
43
|
+
group: (StringConstructor | NumberConstructor)[];
|
|
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<"depth" | "dev" |
|
|
|
68
68
|
'metrics-registry': (StringConstructor | null)[];
|
|
69
69
|
'node-options': (StringConstructor | null)[];
|
|
70
70
|
'node-version': ((() => void) | null)[];
|
|
71
|
-
'no-proxy': (
|
|
71
|
+
'no-proxy': (StringConstructor | ArrayConstructor | 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<"depth" | "dev" |
|
|
|
115
115
|
unicode: BooleanConstructor;
|
|
116
116
|
'unsafe-perm': BooleanConstructor;
|
|
117
117
|
usage: BooleanConstructor;
|
|
118
|
-
user: (
|
|
118
|
+
user: (StringConstructor | NumberConstructor)[];
|
|
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<"depth" | "dev" |
|
|
|
123
123
|
versions: BooleanConstructor;
|
|
124
124
|
viewer: StringConstructor;
|
|
125
125
|
_exit: BooleanConstructor;
|
|
126
|
-
}, "dev" | "
|
|
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;
|
|
132
133
|
dev: any;
|
|
134
|
+
optional: any;
|
|
133
135
|
global: any;
|
|
134
136
|
production: any;
|
|
135
|
-
optional: any;
|
|
136
137
|
offline: any;
|
|
137
|
-
registry: any;
|
|
138
138
|
only: any;
|
|
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;
|
|
@@ -15,7 +15,7 @@ export declare function cliOptionsTypes(): Pick<Partial<Record<"depth" | "dev" |
|
|
|
15
15
|
'auth-type': string[];
|
|
16
16
|
'bin-links': BooleanConstructor;
|
|
17
17
|
browser: (StringConstructor | null)[];
|
|
18
|
-
ca: (
|
|
18
|
+
ca: (StringConstructor | ArrayConstructor | 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<"depth" | "dev" |
|
|
|
24
24
|
'cache-max': NumberConstructor;
|
|
25
25
|
'cache-min': NumberConstructor;
|
|
26
26
|
cert: (StringConstructor | null)[];
|
|
27
|
-
cidr: (
|
|
27
|
+
cidr: (StringConstructor | ArrayConstructor | 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<"depth" | "dev" |
|
|
|
43
43
|
global: BooleanConstructor;
|
|
44
44
|
globalconfig: path.PlatformPath;
|
|
45
45
|
'global-style': BooleanConstructor;
|
|
46
|
-
group: (
|
|
46
|
+
group: (StringConstructor | NumberConstructor)[];
|
|
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<"depth" | "dev" |
|
|
|
71
71
|
'metrics-registry': (StringConstructor | null)[];
|
|
72
72
|
'node-options': (StringConstructor | null)[];
|
|
73
73
|
'node-version': ((() => void) | null)[];
|
|
74
|
-
'no-proxy': (
|
|
74
|
+
'no-proxy': (StringConstructor | ArrayConstructor | 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<"depth" | "dev" |
|
|
|
118
118
|
unicode: BooleanConstructor;
|
|
119
119
|
'unsafe-perm': BooleanConstructor;
|
|
120
120
|
usage: BooleanConstructor;
|
|
121
|
-
user: (
|
|
121
|
+
user: (StringConstructor | NumberConstructor)[];
|
|
122
122
|
userconfig: path.PlatformPath;
|
|
123
123
|
umask: () => void;
|
|
124
124
|
version: BooleanConstructor;
|
|
@@ -126,7 +126,7 @@ export declare function cliOptionsTypes(): Pick<Partial<Record<"depth" | "dev" |
|
|
|
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;
|
|
@@ -12,7 +12,7 @@ export declare function cliOptionsTypes(): Pick<Partial<Record<"depth" | "dev" |
|
|
|
12
12
|
'auth-type': string[];
|
|
13
13
|
'bin-links': BooleanConstructor;
|
|
14
14
|
browser: (StringConstructor | null)[];
|
|
15
|
-
ca: (
|
|
15
|
+
ca: (StringConstructor | ArrayConstructor | 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<"depth" | "dev" |
|
|
|
21
21
|
'cache-max': NumberConstructor;
|
|
22
22
|
'cache-min': NumberConstructor;
|
|
23
23
|
cert: (StringConstructor | null)[];
|
|
24
|
-
cidr: (
|
|
24
|
+
cidr: (StringConstructor | ArrayConstructor | 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<"depth" | "dev" |
|
|
|
40
40
|
global: BooleanConstructor;
|
|
41
41
|
globalconfig: import("path").PlatformPath;
|
|
42
42
|
'global-style': BooleanConstructor;
|
|
43
|
-
group: (
|
|
43
|
+
group: (StringConstructor | NumberConstructor)[];
|
|
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<"depth" | "dev" |
|
|
|
68
68
|
'metrics-registry': (StringConstructor | null)[];
|
|
69
69
|
'node-options': (StringConstructor | null)[];
|
|
70
70
|
'node-version': ((() => void) | null)[];
|
|
71
|
-
'no-proxy': (
|
|
71
|
+
'no-proxy': (StringConstructor | ArrayConstructor | 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<"depth" | "dev" |
|
|
|
115
115
|
unicode: BooleanConstructor;
|
|
116
116
|
'unsafe-perm': BooleanConstructor;
|
|
117
117
|
usage: BooleanConstructor;
|
|
118
|
-
user: (
|
|
118
|
+
user: (StringConstructor | NumberConstructor)[];
|
|
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<"depth" | "dev" |
|
|
|
123
123
|
versions: BooleanConstructor;
|
|
124
124
|
viewer: StringConstructor;
|
|
125
125
|
_exit: BooleanConstructor;
|
|
126
|
-
}, "dev" | "
|
|
126
|
+
}, "dev" | "optional" | "production">;
|
|
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<"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;
|
|
@@ -13,7 +13,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"depth" | "dev" |
|
|
|
13
13
|
'auth-type': string[];
|
|
14
14
|
'bin-links': BooleanConstructor;
|
|
15
15
|
browser: (StringConstructor | null)[];
|
|
16
|
-
ca: (
|
|
16
|
+
ca: (StringConstructor | ArrayConstructor | 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<"depth" | "dev" |
|
|
|
22
22
|
'cache-max': NumberConstructor;
|
|
23
23
|
'cache-min': NumberConstructor;
|
|
24
24
|
cert: (StringConstructor | null)[];
|
|
25
|
-
cidr: (
|
|
25
|
+
cidr: (StringConstructor | ArrayConstructor | 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<"depth" | "dev" |
|
|
|
41
41
|
global: BooleanConstructor;
|
|
42
42
|
globalconfig: import("path").PlatformPath;
|
|
43
43
|
'global-style': BooleanConstructor;
|
|
44
|
-
group: (
|
|
44
|
+
group: (StringConstructor | NumberConstructor)[];
|
|
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<"depth" | "dev" |
|
|
|
69
69
|
'metrics-registry': (StringConstructor | null)[];
|
|
70
70
|
'node-options': (StringConstructor | null)[];
|
|
71
71
|
'node-version': ((() => void) | null)[];
|
|
72
|
-
'no-proxy': (
|
|
72
|
+
'no-proxy': (StringConstructor | ArrayConstructor | 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<"depth" | "dev" |
|
|
|
116
116
|
unicode: BooleanConstructor;
|
|
117
117
|
'unsafe-perm': BooleanConstructor;
|
|
118
118
|
usage: BooleanConstructor;
|
|
119
|
-
user: (
|
|
119
|
+
user: (StringConstructor | NumberConstructor)[];
|
|
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<"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;
|
|
@@ -12,7 +12,7 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"depth" | "dev" |
|
|
|
12
12
|
'auth-type': string[];
|
|
13
13
|
'bin-links': BooleanConstructor;
|
|
14
14
|
browser: (StringConstructor | null)[];
|
|
15
|
-
ca: (
|
|
15
|
+
ca: (StringConstructor | ArrayConstructor | 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<"depth" | "dev" |
|
|
|
21
21
|
'cache-max': NumberConstructor;
|
|
22
22
|
'cache-min': NumberConstructor;
|
|
23
23
|
cert: (StringConstructor | null)[];
|
|
24
|
-
cidr: (
|
|
24
|
+
cidr: (StringConstructor | ArrayConstructor | 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<"depth" | "dev" |
|
|
|
40
40
|
global: BooleanConstructor;
|
|
41
41
|
globalconfig: import("path").PlatformPath;
|
|
42
42
|
'global-style': BooleanConstructor;
|
|
43
|
-
group: (
|
|
43
|
+
group: (StringConstructor | NumberConstructor)[];
|
|
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<"depth" | "dev" |
|
|
|
68
68
|
'metrics-registry': (StringConstructor | null)[];
|
|
69
69
|
'node-options': (StringConstructor | null)[];
|
|
70
70
|
'node-version': ((() => void) | null)[];
|
|
71
|
-
'no-proxy': (
|
|
71
|
+
'no-proxy': (StringConstructor | ArrayConstructor | 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<"depth" | "dev" |
|
|
|
115
115
|
unicode: BooleanConstructor;
|
|
116
116
|
'unsafe-perm': BooleanConstructor;
|
|
117
117
|
usage: BooleanConstructor;
|
|
118
|
-
user: (
|
|
118
|
+
user: (StringConstructor | NumberConstructor)[];
|
|
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<"depth" | "dev" |
|
|
|
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
|
-
|
|
132
|
+
registry: any;
|
|
133
133
|
dev: any;
|
|
134
|
-
global: any;
|
|
135
|
-
production: any;
|
|
136
|
-
save: any;
|
|
137
134
|
optional: any;
|
|
138
135
|
force: any;
|
|
136
|
+
global: any;
|
|
137
|
+
save: any;
|
|
138
|
+
production: any;
|
|
139
|
+
depth: any;
|
|
139
140
|
offline: any;
|
|
140
|
-
registry: any;
|
|
141
141
|
only: any;
|
|
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;
|
|
151
|
-
'scripts-prepend-node-path': any;
|
|
152
|
-
'unsafe-perm': any;
|
|
147
|
+
'fetch-retry-maxtimeout': any;
|
|
153
148
|
'save-exact': any;
|
|
154
149
|
'save-prefix': any;
|
|
150
|
+
'scripts-prepend-node-path': any;
|
|
151
|
+
'engine-strict': any;
|
|
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.2.
|
|
3
|
+
"version": "14.2.3",
|
|
4
4
|
"description": "Commands for installation",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -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.3",
|
|
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,7 +73,7 @@
|
|
|
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.3",
|
|
77
77
|
"@pnpm/dedupe.check": "1.0.7",
|
|
78
78
|
"@pnpm/error": "5.0.2",
|
|
79
79
|
"@pnpm/filter-workspace-packages": "7.2.11",
|
|
@@ -82,15 +82,15 @@
|
|
|
82
82
|
"@pnpm/lockfile-types": "5.1.5",
|
|
83
83
|
"@pnpm/manifest-utils": "5.0.7",
|
|
84
84
|
"@pnpm/matcher": "5.0.0",
|
|
85
|
-
"@pnpm/
|
|
86
|
-
"@pnpm/
|
|
85
|
+
"@pnpm/outdated": "13.0.43",
|
|
86
|
+
"@pnpm/package-store": "19.0.16",
|
|
87
87
|
"@pnpm/parse-wanted-dependency": "5.0.0",
|
|
88
|
-
"@pnpm/plugin-commands-rebuild": "10.0.
|
|
89
|
-
"@pnpm/resolver-base": "11.1.0",
|
|
88
|
+
"@pnpm/plugin-commands-rebuild": "10.0.19",
|
|
90
89
|
"@pnpm/pnpmfile": "5.0.20",
|
|
91
90
|
"@pnpm/read-project-manifest": "5.0.10",
|
|
91
|
+
"@pnpm/resolver-base": "11.1.0",
|
|
92
92
|
"@pnpm/sort-packages": "5.0.9",
|
|
93
|
-
"@pnpm/store-connection-manager": "7.0.
|
|
93
|
+
"@pnpm/store-connection-manager": "7.0.27",
|
|
94
94
|
"@pnpm/types": "9.4.2",
|
|
95
95
|
"@pnpm/workspace.find-packages": "1.1.10",
|
|
96
96
|
"@pnpm/workspace.pkgs-graph": "2.0.14"
|
|
@@ -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=updateToLatestSpecFromManifest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -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,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"}
|