rolldown-pnpm-config 2.5.2 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/cli/commands/export.js +6 -13
- package/cli/commands/preview.js +1 -1
- package/cli/commands/upgrade.js +55 -22
- package/cli/cwd.js +16 -2
- package/cli/load-config.js +6 -8
- package/cli/preview-views.js +4 -4
- package/cli/release-age.js +14 -5
- package/cli/resolve.js +89 -89
- package/cli/simulated-view.js +3 -2
- package/cli/version.js +1 -1
- package/index.d.ts +124 -136
- package/package.json +9 -8
- package/plugin/freeze.js +64 -8
- package/plugin/overrides-from-catalogs.js +24 -6
- package/registry.js +471 -4
- package/runtime/strategies/arrays.js +27 -1
- package/runtime/strategies/table.js +2 -1
- package/cli/workspace-file.js +0 -347
- package/descriptors/build.js +0 -252
- package/descriptors/hoisting.js +0 -188
- package/descriptors/index.js +0 -37
- package/descriptors/lockfile.js +0 -116
- package/descriptors/misc.js +0 -151
- package/descriptors/network.js +0 -107
- package/descriptors/resolution.js +0 -246
- package/descriptors/runtime-cfg.js +0 -99
- package/descriptors/schemas.js +0 -13
- package/descriptors/workspace.js +0 -124
package/descriptors/hoisting.js
DELETED
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { Bool, Num, Str, StringArray } from "./schemas.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
|
|
4
|
-
// src/descriptors/hoisting.ts
|
|
5
|
-
/** The 17 hoisting + node-modules + store fields. @internal */
|
|
6
|
-
const hoisting = {
|
|
7
|
-
hoist: {
|
|
8
|
-
schema: Bool,
|
|
9
|
-
kind: "boolean",
|
|
10
|
-
strategy: "scalar",
|
|
11
|
-
enforcement: "absent",
|
|
12
|
-
doc: "Whether packages are hoisted to the virtual store root node_modules.",
|
|
13
|
-
workspaceYaml: true,
|
|
14
|
-
anchor: "hoist"
|
|
15
|
-
},
|
|
16
|
-
hoistWorkspacePackages: {
|
|
17
|
-
schema: Bool,
|
|
18
|
-
kind: "boolean",
|
|
19
|
-
strategy: "scalar",
|
|
20
|
-
enforcement: "absent",
|
|
21
|
-
doc: "Whether workspace packages are hoisted to the root node_modules.",
|
|
22
|
-
workspaceYaml: true,
|
|
23
|
-
anchor: "hoistworkspacepackages"
|
|
24
|
-
},
|
|
25
|
-
hoistPattern: {
|
|
26
|
-
schema: StringArray,
|
|
27
|
-
kind: "stringArray",
|
|
28
|
-
strategy: "arrayUnion",
|
|
29
|
-
enforcement: "absent",
|
|
30
|
-
doc: "Glob patterns describing which packages are hoisted to the virtual store root.",
|
|
31
|
-
workspaceYaml: true,
|
|
32
|
-
anchor: "hoistpattern"
|
|
33
|
-
},
|
|
34
|
-
shamefullyHoist: {
|
|
35
|
-
schema: Bool,
|
|
36
|
-
kind: "boolean",
|
|
37
|
-
strategy: "scalar",
|
|
38
|
-
enforcement: "absent",
|
|
39
|
-
doc: "Whether all packages are hoisted to the root node_modules (shameful flat layout).",
|
|
40
|
-
workspaceYaml: true,
|
|
41
|
-
anchor: "shamefullyhoist"
|
|
42
|
-
},
|
|
43
|
-
hoistingLimits: {
|
|
44
|
-
schema: Schema.Literals([
|
|
45
|
-
"none",
|
|
46
|
-
"workspaces",
|
|
47
|
-
"dependencies"
|
|
48
|
-
]),
|
|
49
|
-
kind: "enum",
|
|
50
|
-
strategy: "scalar",
|
|
51
|
-
enforcement: "absent",
|
|
52
|
-
doc: "Defines the scope to which dependencies are hoisted.",
|
|
53
|
-
workspaceYaml: true,
|
|
54
|
-
anchor: "hoistinglimits",
|
|
55
|
-
samples: {
|
|
56
|
-
valid: ["none"],
|
|
57
|
-
invalid: ["x"]
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
modulesDir: {
|
|
61
|
-
schema: Str,
|
|
62
|
-
kind: "string",
|
|
63
|
-
strategy: "scalar",
|
|
64
|
-
enforcement: "absent",
|
|
65
|
-
doc: "The directory in which node_modules will be created.",
|
|
66
|
-
workspaceYaml: true,
|
|
67
|
-
anchor: "modulesdir"
|
|
68
|
-
},
|
|
69
|
-
nodeLinker: {
|
|
70
|
-
schema: Schema.Literals([
|
|
71
|
-
"isolated",
|
|
72
|
-
"hoisted",
|
|
73
|
-
"pnp"
|
|
74
|
-
]),
|
|
75
|
-
kind: "enum",
|
|
76
|
-
strategy: "scalar",
|
|
77
|
-
enforcement: "absent",
|
|
78
|
-
doc: "Defines which linker is used for installing Node.js packages.",
|
|
79
|
-
workspaceYaml: true,
|
|
80
|
-
anchor: "nodelinker",
|
|
81
|
-
samples: {
|
|
82
|
-
valid: ["isolated"],
|
|
83
|
-
invalid: ["x"]
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
symlink: {
|
|
87
|
-
schema: Bool,
|
|
88
|
-
kind: "boolean",
|
|
89
|
-
strategy: "scalar",
|
|
90
|
-
enforcement: "absent",
|
|
91
|
-
doc: "Whether symlinks are created when linking packages from the store.",
|
|
92
|
-
workspaceYaml: true,
|
|
93
|
-
anchor: "symlink"
|
|
94
|
-
},
|
|
95
|
-
enableModulesDir: {
|
|
96
|
-
schema: Bool,
|
|
97
|
-
kind: "boolean",
|
|
98
|
-
strategy: "scalar",
|
|
99
|
-
enforcement: "absent",
|
|
100
|
-
doc: "Whether the local node_modules directory should be created during install.",
|
|
101
|
-
workspaceYaml: true,
|
|
102
|
-
anchor: "enablemodulesdir"
|
|
103
|
-
},
|
|
104
|
-
virtualStoreDir: {
|
|
105
|
-
schema: Str,
|
|
106
|
-
kind: "string",
|
|
107
|
-
strategy: "scalar",
|
|
108
|
-
enforcement: "absent",
|
|
109
|
-
doc: "The directory with links to the store (default: node_modules/.pnpm).",
|
|
110
|
-
workspaceYaml: true,
|
|
111
|
-
anchor: "virtualstoredir"
|
|
112
|
-
},
|
|
113
|
-
virtualStoreDirMaxLength: {
|
|
114
|
-
schema: Num,
|
|
115
|
-
kind: "number",
|
|
116
|
-
strategy: "scalar",
|
|
117
|
-
enforcement: "absent",
|
|
118
|
-
doc: "Maximum allowed length of directory names inside the virtual store.",
|
|
119
|
-
workspaceYaml: true,
|
|
120
|
-
anchor: "virtualstoredirmaxlength"
|
|
121
|
-
},
|
|
122
|
-
virtualStoreOnly: {
|
|
123
|
-
schema: Bool,
|
|
124
|
-
kind: "boolean",
|
|
125
|
-
strategy: "scalar",
|
|
126
|
-
enforcement: "absent",
|
|
127
|
-
doc: "Whether packages are written only to the virtual store without a local modules dir.",
|
|
128
|
-
workspaceYaml: true,
|
|
129
|
-
anchor: "virtualstoreonly"
|
|
130
|
-
},
|
|
131
|
-
packageImportMethod: {
|
|
132
|
-
schema: Schema.Literals([
|
|
133
|
-
"auto",
|
|
134
|
-
"hardlink",
|
|
135
|
-
"copy",
|
|
136
|
-
"clone",
|
|
137
|
-
"clone-or-copy"
|
|
138
|
-
]),
|
|
139
|
-
kind: "enum",
|
|
140
|
-
strategy: "scalar",
|
|
141
|
-
enforcement: "absent",
|
|
142
|
-
doc: "Controls how packages are imported from the content-addressable store.",
|
|
143
|
-
workspaceYaml: true,
|
|
144
|
-
anchor: "packageimportmethod",
|
|
145
|
-
samples: {
|
|
146
|
-
valid: ["auto"],
|
|
147
|
-
invalid: ["x"]
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
modulesCacheMaxAge: {
|
|
151
|
-
schema: Num,
|
|
152
|
-
kind: "number",
|
|
153
|
-
strategy: "scalar",
|
|
154
|
-
enforcement: "absent",
|
|
155
|
-
doc: "Maximum age (minutes) of unused modules directories before they are pruned.",
|
|
156
|
-
workspaceYaml: true,
|
|
157
|
-
anchor: "modulescachemaxage"
|
|
158
|
-
},
|
|
159
|
-
dlxCacheMaxAge: {
|
|
160
|
-
schema: Num,
|
|
161
|
-
kind: "number",
|
|
162
|
-
strategy: "scalar",
|
|
163
|
-
enforcement: "absent",
|
|
164
|
-
doc: "Maximum age (minutes) of cached dlx command results before re-fetch.",
|
|
165
|
-
workspaceYaml: true,
|
|
166
|
-
anchor: "dlxcachemaxage"
|
|
167
|
-
},
|
|
168
|
-
verifyStoreIntegrity: {
|
|
169
|
-
schema: Bool,
|
|
170
|
-
kind: "boolean",
|
|
171
|
-
strategy: "scalar",
|
|
172
|
-
enforcement: "warn",
|
|
173
|
-
doc: "Whether integrity checksums in the store are verified before using a package.",
|
|
174
|
-
workspaceYaml: true,
|
|
175
|
-
anchor: "verifystoreintegrity"
|
|
176
|
-
},
|
|
177
|
-
strictStorePkgContentCheck: {
|
|
178
|
-
schema: Bool,
|
|
179
|
-
kind: "boolean",
|
|
180
|
-
strategy: "scalar",
|
|
181
|
-
enforcement: "warn",
|
|
182
|
-
doc: "Whether store package content checksums are verified strictly on each access.",
|
|
183
|
-
workspaceYaml: true,
|
|
184
|
-
anchor: "strictstorepkgcontentcheck"
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
export { hoisting };
|
package/descriptors/index.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { build } from "./build.js";
|
|
2
|
-
import { hoisting } from "./hoisting.js";
|
|
3
|
-
import { lockfile } from "./lockfile.js";
|
|
4
|
-
import { misc } from "./misc.js";
|
|
5
|
-
import { network } from "./network.js";
|
|
6
|
-
import { resolution } from "./resolution.js";
|
|
7
|
-
import { runtimeCfg } from "./runtime-cfg.js";
|
|
8
|
-
import { workspace } from "./workspace.js";
|
|
9
|
-
|
|
10
|
-
// src/descriptors/index.ts
|
|
11
|
-
const DESCRIPTORS = {
|
|
12
|
-
...resolution,
|
|
13
|
-
...hoisting,
|
|
14
|
-
...lockfile,
|
|
15
|
-
...build,
|
|
16
|
-
...runtimeCfg,
|
|
17
|
-
...workspace,
|
|
18
|
-
...misc,
|
|
19
|
-
...network
|
|
20
|
-
};
|
|
21
|
-
/** Derive the per-field validation schemas consumed by freeze(). @internal */
|
|
22
|
-
function deriveSchemas(d) {
|
|
23
|
-
const out = {};
|
|
24
|
-
for (const [field, desc] of Object.entries(d)) out[field] = desc.schema;
|
|
25
|
-
return out;
|
|
26
|
-
}
|
|
27
|
-
/** Derive the strategy + enforcement registry consumed by freeze(). @internal */
|
|
28
|
-
function deriveRegistry(d) {
|
|
29
|
-
const out = {};
|
|
30
|
-
for (const [field, desc] of Object.entries(d)) out[field] = {
|
|
31
|
-
strategy: desc.strategy,
|
|
32
|
-
enforcement: desc.enforcement
|
|
33
|
-
};
|
|
34
|
-
return out;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { DESCRIPTORS, deriveRegistry, deriveSchemas };
|
package/descriptors/lockfile.js
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { Bool, Num, StringArray } from "./schemas.js";
|
|
2
|
-
|
|
3
|
-
// src/descriptors/lockfile.ts
|
|
4
|
-
/** The 12 lockfile + peers fields. @internal */
|
|
5
|
-
const lockfile = {
|
|
6
|
-
lockfile: {
|
|
7
|
-
schema: Bool,
|
|
8
|
-
kind: "boolean",
|
|
9
|
-
strategy: "scalar",
|
|
10
|
-
enforcement: "absent",
|
|
11
|
-
doc: "Whether a lockfile is used and generated when running commands that install packages.",
|
|
12
|
-
workspaceYaml: true,
|
|
13
|
-
anchor: "lockfile"
|
|
14
|
-
},
|
|
15
|
-
preferFrozenLockfile: {
|
|
16
|
-
schema: Bool,
|
|
17
|
-
kind: "boolean",
|
|
18
|
-
strategy: "scalar",
|
|
19
|
-
enforcement: "absent",
|
|
20
|
-
doc: "If true, pnpm does not generate a lockfile and fails if the lockfile is out of date.",
|
|
21
|
-
workspaceYaml: true,
|
|
22
|
-
anchor: "preferfrozenlockfile"
|
|
23
|
-
},
|
|
24
|
-
lockfileIncludeTarballUrl: {
|
|
25
|
-
schema: Bool,
|
|
26
|
-
kind: "boolean",
|
|
27
|
-
strategy: "scalar",
|
|
28
|
-
enforcement: "absent",
|
|
29
|
-
doc: "Whether the lockfile includes the full tarball URL for each resolved dependency.",
|
|
30
|
-
workspaceYaml: true,
|
|
31
|
-
anchor: "lockfileincludetarballurl"
|
|
32
|
-
},
|
|
33
|
-
gitBranchLockfile: {
|
|
34
|
-
schema: Bool,
|
|
35
|
-
kind: "boolean",
|
|
36
|
-
strategy: "scalar",
|
|
37
|
-
enforcement: "absent",
|
|
38
|
-
doc: "When enabled, the generated lockfile name is based on the current branch name.",
|
|
39
|
-
workspaceYaml: true,
|
|
40
|
-
anchor: "gitbranchlockfile"
|
|
41
|
-
},
|
|
42
|
-
mergeGitBranchLockfilesBranchPattern: {
|
|
43
|
-
schema: StringArray,
|
|
44
|
-
kind: "stringArray",
|
|
45
|
-
strategy: "arrayUnion",
|
|
46
|
-
enforcement: "absent",
|
|
47
|
-
doc: "Branch name patterns whose lockfiles are merged into the main lockfile on install.",
|
|
48
|
-
workspaceYaml: true,
|
|
49
|
-
anchor: "mergegitbranchlockfilesbranchpattern"
|
|
50
|
-
},
|
|
51
|
-
peersSuffixMaxLength: {
|
|
52
|
-
schema: Num,
|
|
53
|
-
kind: "number",
|
|
54
|
-
strategy: "scalar",
|
|
55
|
-
enforcement: "absent",
|
|
56
|
-
doc: "Maximum length of the peers suffix appended to dependency directory names in the virtual store.",
|
|
57
|
-
workspaceYaml: true,
|
|
58
|
-
anchor: "peerssuffixmaxlength"
|
|
59
|
-
},
|
|
60
|
-
sharedWorkspaceLockfile: {
|
|
61
|
-
schema: Bool,
|
|
62
|
-
kind: "boolean",
|
|
63
|
-
strategy: "scalar",
|
|
64
|
-
enforcement: "absent",
|
|
65
|
-
doc: "Whether a single shared lockfile is used for all projects in the workspace.",
|
|
66
|
-
workspaceYaml: true,
|
|
67
|
-
anchor: "sharedworkspacelockfile"
|
|
68
|
-
},
|
|
69
|
-
autoInstallPeers: {
|
|
70
|
-
schema: Bool,
|
|
71
|
-
kind: "boolean",
|
|
72
|
-
strategy: "scalar",
|
|
73
|
-
enforcement: "absent",
|
|
74
|
-
doc: "Whether missing peer dependencies are installed automatically.",
|
|
75
|
-
workspaceYaml: true,
|
|
76
|
-
anchor: "autoinstallpeers"
|
|
77
|
-
},
|
|
78
|
-
dedupePeerDependents: {
|
|
79
|
-
schema: Bool,
|
|
80
|
-
kind: "boolean",
|
|
81
|
-
strategy: "scalar",
|
|
82
|
-
enforcement: "absent",
|
|
83
|
-
doc: "Whether packages with peer dependencies are deduplicated after peers are resolved.",
|
|
84
|
-
workspaceYaml: true,
|
|
85
|
-
anchor: "dedupepeerdependents"
|
|
86
|
-
},
|
|
87
|
-
dedupePeers: {
|
|
88
|
-
schema: Bool,
|
|
89
|
-
kind: "boolean",
|
|
90
|
-
strategy: "scalar",
|
|
91
|
-
enforcement: "absent",
|
|
92
|
-
doc: "Whether peer dependencies are deduplicated during resolution.",
|
|
93
|
-
workspaceYaml: true,
|
|
94
|
-
anchor: "dedupepeers"
|
|
95
|
-
},
|
|
96
|
-
strictPeerDependencies: {
|
|
97
|
-
schema: Bool,
|
|
98
|
-
kind: "boolean",
|
|
99
|
-
strategy: "scalar",
|
|
100
|
-
enforcement: "absent",
|
|
101
|
-
doc: "If true, commands fail when there are missing or invalid peer dependencies.",
|
|
102
|
-
workspaceYaml: true,
|
|
103
|
-
anchor: "strictpeerdependencies"
|
|
104
|
-
},
|
|
105
|
-
resolvePeersFromWorkspaceRoot: {
|
|
106
|
-
schema: Bool,
|
|
107
|
-
kind: "boolean",
|
|
108
|
-
strategy: "scalar",
|
|
109
|
-
enforcement: "absent",
|
|
110
|
-
doc: "Whether peer dependencies are resolved using packages installed in the workspace root.",
|
|
111
|
-
workspaceYaml: true,
|
|
112
|
-
anchor: "resolvepeersfromworkspaceroot"
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
export { lockfile };
|
package/descriptors/misc.js
DELETED
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import { Bool, Str } from "./schemas.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
|
|
4
|
-
// src/descriptors/misc.ts
|
|
5
|
-
/** The 14 resolution/misc preference fields. @internal */
|
|
6
|
-
const misc = {
|
|
7
|
-
resolutionMode: {
|
|
8
|
-
schema: Schema.Literals([
|
|
9
|
-
"highest",
|
|
10
|
-
"time-based",
|
|
11
|
-
"lowest-direct"
|
|
12
|
-
]),
|
|
13
|
-
kind: "enum",
|
|
14
|
-
strategy: "scalar",
|
|
15
|
-
enforcement: "absent",
|
|
16
|
-
doc: "Algorithm used to resolve dependencies from the registry.",
|
|
17
|
-
workspaceYaml: true,
|
|
18
|
-
anchor: "resolutionmode",
|
|
19
|
-
samples: {
|
|
20
|
-
valid: ["highest"],
|
|
21
|
-
invalid: ["x"]
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
savePrefix: {
|
|
25
|
-
schema: Schema.Literals([
|
|
26
|
-
"^",
|
|
27
|
-
"~",
|
|
28
|
-
""
|
|
29
|
-
]),
|
|
30
|
-
kind: "enum",
|
|
31
|
-
strategy: "scalar",
|
|
32
|
-
enforcement: "absent",
|
|
33
|
-
doc: "Version prefix prepended to package versions saved in package.json.",
|
|
34
|
-
workspaceYaml: true,
|
|
35
|
-
anchor: "saveprefix",
|
|
36
|
-
samples: {
|
|
37
|
-
valid: ["^"],
|
|
38
|
-
invalid: ["x"]
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
saveExact: {
|
|
42
|
-
schema: Bool,
|
|
43
|
-
kind: "boolean",
|
|
44
|
-
strategy: "scalar",
|
|
45
|
-
enforcement: "absent",
|
|
46
|
-
doc: "Whether packages are saved with an exact version instead of a semver range.",
|
|
47
|
-
workspaceYaml: true,
|
|
48
|
-
anchor: "saveexact"
|
|
49
|
-
},
|
|
50
|
-
tag: {
|
|
51
|
-
schema: Str,
|
|
52
|
-
kind: "string",
|
|
53
|
-
strategy: "scalar",
|
|
54
|
-
enforcement: "absent",
|
|
55
|
-
doc: "The default tag used when adding packages without a specified version.",
|
|
56
|
-
workspaceYaml: true,
|
|
57
|
-
anchor: "tag"
|
|
58
|
-
},
|
|
59
|
-
preferOffline: {
|
|
60
|
-
schema: Bool,
|
|
61
|
-
kind: "boolean",
|
|
62
|
-
strategy: "scalar",
|
|
63
|
-
enforcement: "absent",
|
|
64
|
-
doc: "Whether cached data is used without network requests, failing only if data is missing.",
|
|
65
|
-
workspaceYaml: true,
|
|
66
|
-
anchor: "preferoffline"
|
|
67
|
-
},
|
|
68
|
-
dedupeDirectDeps: {
|
|
69
|
-
schema: Bool,
|
|
70
|
-
kind: "boolean",
|
|
71
|
-
strategy: "scalar",
|
|
72
|
-
enforcement: "absent",
|
|
73
|
-
doc: "Whether direct dependencies are deduplicated when they can be satisfied by an existing dependency.",
|
|
74
|
-
workspaceYaml: true,
|
|
75
|
-
anchor: "dedupedirectdeps"
|
|
76
|
-
},
|
|
77
|
-
deployAllFiles: {
|
|
78
|
-
schema: Bool,
|
|
79
|
-
kind: "boolean",
|
|
80
|
-
strategy: "scalar",
|
|
81
|
-
enforcement: "absent",
|
|
82
|
-
doc: "Whether all files of a deployed package are copied including those in node_modules.",
|
|
83
|
-
workspaceYaml: true,
|
|
84
|
-
anchor: "deployallfiles"
|
|
85
|
-
},
|
|
86
|
-
forceLegacyDeploy: {
|
|
87
|
-
schema: Bool,
|
|
88
|
-
kind: "boolean",
|
|
89
|
-
strategy: "scalar",
|
|
90
|
-
enforcement: "absent",
|
|
91
|
-
doc: "Whether the legacy deployment algorithm (copying files) is used instead of the default.",
|
|
92
|
-
workspaceYaml: true,
|
|
93
|
-
anchor: "forcelegacydeploy"
|
|
94
|
-
},
|
|
95
|
-
extendNodePath: {
|
|
96
|
-
schema: Bool,
|
|
97
|
-
kind: "boolean",
|
|
98
|
-
strategy: "scalar",
|
|
99
|
-
enforcement: "absent",
|
|
100
|
-
doc: "Whether the NODE_PATH environment variable is set when running scripts.",
|
|
101
|
-
workspaceYaml: true,
|
|
102
|
-
anchor: "extendnodepath"
|
|
103
|
-
},
|
|
104
|
-
preferSymlinkedExecutables: {
|
|
105
|
-
schema: Bool,
|
|
106
|
-
kind: "boolean",
|
|
107
|
-
strategy: "scalar",
|
|
108
|
-
enforcement: "absent",
|
|
109
|
-
doc: "Whether symlinks to executables are created instead of shell shims on non-Windows systems.",
|
|
110
|
-
workspaceYaml: true,
|
|
111
|
-
anchor: "prefersymlinkedexecutables"
|
|
112
|
-
},
|
|
113
|
-
ignoreCompatibilityDb: {
|
|
114
|
-
schema: Bool,
|
|
115
|
-
kind: "boolean",
|
|
116
|
-
strategy: "scalar",
|
|
117
|
-
enforcement: "absent",
|
|
118
|
-
doc: "Whether the built-in compatibility database of lifecycle script overrides is ignored.",
|
|
119
|
-
workspaceYaml: true,
|
|
120
|
-
anchor: "ignorecompatibilitydb"
|
|
121
|
-
},
|
|
122
|
-
optimisticRepeatInstall: {
|
|
123
|
-
schema: Bool,
|
|
124
|
-
kind: "boolean",
|
|
125
|
-
strategy: "scalar",
|
|
126
|
-
enforcement: "absent",
|
|
127
|
-
doc: "Whether pnpm skips integrity checks when the lockfile is up to date to speed up repeat installs.",
|
|
128
|
-
workspaceYaml: true,
|
|
129
|
-
anchor: "optimisticrepeatinstall"
|
|
130
|
-
},
|
|
131
|
-
recursiveInstall: {
|
|
132
|
-
schema: Bool,
|
|
133
|
-
kind: "boolean",
|
|
134
|
-
strategy: "scalar",
|
|
135
|
-
enforcement: "absent",
|
|
136
|
-
doc: "Whether pnpm installs all projects in the workspace when running install in a workspace.",
|
|
137
|
-
workspaceYaml: true,
|
|
138
|
-
anchor: "recursiveinstall"
|
|
139
|
-
},
|
|
140
|
-
engineStrict: {
|
|
141
|
-
schema: Bool,
|
|
142
|
-
kind: "boolean",
|
|
143
|
-
strategy: "scalar",
|
|
144
|
-
enforcement: "absent",
|
|
145
|
-
doc: "Whether pnpm fails if a dependency's engines field is incompatible with the current Node.js version.",
|
|
146
|
-
workspaceYaml: true,
|
|
147
|
-
anchor: "enginestrict"
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
export { misc };
|
package/descriptors/network.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { Bool, Num, Str, StringArray } from "./schemas.js";
|
|
2
|
-
|
|
3
|
-
// src/descriptors/network.ts
|
|
4
|
-
/** The 11 network tuning + publish fields. @internal */
|
|
5
|
-
const network = {
|
|
6
|
-
networkConcurrency: {
|
|
7
|
-
schema: Num,
|
|
8
|
-
kind: "number",
|
|
9
|
-
strategy: "scalar",
|
|
10
|
-
enforcement: "absent",
|
|
11
|
-
doc: "Maximum number of concurrent network requests pnpm is allowed to make.",
|
|
12
|
-
workspaceYaml: true,
|
|
13
|
-
anchor: "networkconcurrency"
|
|
14
|
-
},
|
|
15
|
-
fetchRetries: {
|
|
16
|
-
schema: Num,
|
|
17
|
-
kind: "number",
|
|
18
|
-
strategy: "scalar",
|
|
19
|
-
enforcement: "absent",
|
|
20
|
-
doc: "Number of times pnpm retries fetching a package from the registry on failure.",
|
|
21
|
-
workspaceYaml: true,
|
|
22
|
-
anchor: "fetchretries"
|
|
23
|
-
},
|
|
24
|
-
fetchRetryFactor: {
|
|
25
|
-
schema: Num,
|
|
26
|
-
kind: "number",
|
|
27
|
-
strategy: "scalar",
|
|
28
|
-
enforcement: "absent",
|
|
29
|
-
doc: "Exponential factor used when calculating retry delays for failed fetches.",
|
|
30
|
-
workspaceYaml: true,
|
|
31
|
-
anchor: "fetchretryfactor"
|
|
32
|
-
},
|
|
33
|
-
fetchRetryMintimeout: {
|
|
34
|
-
schema: Num,
|
|
35
|
-
kind: "number",
|
|
36
|
-
strategy: "scalar",
|
|
37
|
-
enforcement: "absent",
|
|
38
|
-
doc: "Minimum timeout (ms) for a single fetch retry attempt.",
|
|
39
|
-
workspaceYaml: true,
|
|
40
|
-
anchor: "fetchretrymintimeout"
|
|
41
|
-
},
|
|
42
|
-
fetchRetryMaxtimeout: {
|
|
43
|
-
schema: Num,
|
|
44
|
-
kind: "number",
|
|
45
|
-
strategy: "scalar",
|
|
46
|
-
enforcement: "absent",
|
|
47
|
-
doc: "Maximum timeout (ms) for a single fetch retry attempt.",
|
|
48
|
-
workspaceYaml: true,
|
|
49
|
-
anchor: "fetchretrymaxtimeout"
|
|
50
|
-
},
|
|
51
|
-
fetchTimeout: {
|
|
52
|
-
schema: Num,
|
|
53
|
-
kind: "number",
|
|
54
|
-
strategy: "scalar",
|
|
55
|
-
enforcement: "absent",
|
|
56
|
-
doc: "Maximum amount of time (ms) to wait for an HTTP response from the registry.",
|
|
57
|
-
workspaceYaml: true,
|
|
58
|
-
anchor: "fetchtimeout"
|
|
59
|
-
},
|
|
60
|
-
gitShallowHosts: {
|
|
61
|
-
schema: StringArray,
|
|
62
|
-
kind: "stringArray",
|
|
63
|
-
strategy: "arrayUnion",
|
|
64
|
-
enforcement: "absent",
|
|
65
|
-
doc: "Hosts from which git-protocol dependencies are cloned using a shallow fetch.",
|
|
66
|
-
workspaceYaml: true,
|
|
67
|
-
anchor: "gitshallowhosts"
|
|
68
|
-
},
|
|
69
|
-
provenance: {
|
|
70
|
-
schema: Bool,
|
|
71
|
-
kind: "boolean",
|
|
72
|
-
strategy: "scalar",
|
|
73
|
-
enforcement: "absent",
|
|
74
|
-
doc: "Whether packages are published with provenance attestation when supported by the registry.",
|
|
75
|
-
workspaceYaml: true,
|
|
76
|
-
anchor: "provenance"
|
|
77
|
-
},
|
|
78
|
-
gitChecks: {
|
|
79
|
-
schema: Bool,
|
|
80
|
-
kind: "boolean",
|
|
81
|
-
strategy: "scalar",
|
|
82
|
-
enforcement: "absent",
|
|
83
|
-
doc: "Whether pnpm checks that the repository is clean before publishing.",
|
|
84
|
-
workspaceYaml: true,
|
|
85
|
-
anchor: "gitchecks"
|
|
86
|
-
},
|
|
87
|
-
embedReadme: {
|
|
88
|
-
schema: Bool,
|
|
89
|
-
kind: "boolean",
|
|
90
|
-
strategy: "scalar",
|
|
91
|
-
enforcement: "absent",
|
|
92
|
-
doc: "Whether the README file is embedded in the package tarball on publish.",
|
|
93
|
-
workspaceYaml: true,
|
|
94
|
-
anchor: "embedreadme"
|
|
95
|
-
},
|
|
96
|
-
publishBranch: {
|
|
97
|
-
schema: Str,
|
|
98
|
-
kind: "string",
|
|
99
|
-
strategy: "scalar",
|
|
100
|
-
enforcement: "absent",
|
|
101
|
-
doc: "Branch that is allowed to publish packages; publishing from other branches is blocked.",
|
|
102
|
-
workspaceYaml: true,
|
|
103
|
-
anchor: "publishbranch"
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
export { network };
|