rolldown-pnpm-config 2.5.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,347 +0,0 @@
1
- import { Option, Order, Predicate, Result } from "effect";
2
- import { locateWorkspaceRootSync } from "@effected/workspaces";
3
- import { nodeSyncOps } from "@effected/workspaces/node-sync";
4
- import { Yaml, YamlDocument, YamlFormat, YamlLint, YamlLintConfig, YamlStringifyOptions } from "@effected/yaml";
5
-
6
- // src/cli/workspace-file.ts
7
- const FILENAME = "pnpm-workspace.yaml";
8
- const STRINGIFY_OPTIONS = YamlStringifyOptions.make({
9
- indent: 2,
10
- lineWidth: 0
11
- });
12
- /**
13
- * The lint config style inference resolves over: the renderer's historical
14
- * defaults (2-space, unindented sequences, single quotes), so a dimension the
15
- * source gives no votes to falls back to today's output rather than the lint
16
- * preset's double-quote default.
17
- */
18
- const STYLE_BASE = YamlLintConfig.make({ rules: {
19
- ...YamlLintConfig.default.rules,
20
- indentation: {
21
- spaces: 2,
22
- indentSequences: false
23
- },
24
- "quoted-strings": { quoteType: "single" }
25
- } });
26
- /** True when every element is a string/number/boolean (safe to sort). */
27
- function allPrimitive(arr) {
28
- return arr.every((v) => v === null || typeof v !== "object" && typeof v !== "function");
29
- }
30
- /**
31
- * Canonical form for deterministic output and diffing: object keys alpha-sorted
32
- * recursively; arrays of all-primitive elements sorted lexicographically;
33
- * arrays containing objects keep their order.
34
- *
35
- * @internal
36
- */
37
- function canonicalize(value) {
38
- if (Array.isArray(value)) {
39
- const mapped = value.map(canonicalize);
40
- return allPrimitive(mapped) ? [...mapped].sort((a, b) => Order.String(String(a), String(b))) : mapped;
41
- }
42
- if (Predicate.isObject(value)) return Object.fromEntries(Object.entries(value).sort(([a], [b]) => Order.String(a, b)).map(([k, v]) => [k, canonicalize(v)]));
43
- return value;
44
- }
45
- /**
46
- * Walk up from `startDir` to the nearest directory containing a
47
- * pnpm-workspace.yaml; returns the file path or null. A `package.json`
48
- * `workspaces` field is not a marker here: this tool targets pnpm only.
49
- *
50
- * @internal
51
- */
52
- function findWorkspaceFile(startDir) {
53
- return locateWorkspaceRootSync(startDir, {
54
- ...nodeSyncOps,
55
- markers: [FILENAME]
56
- })?.path ?? null;
57
- }
58
- /** Parse pnpm-workspace.yaml source; empty/whitespace yields an empty object. @internal */
59
- function parseWorkspace(source) {
60
- const parsed = Result.getOrThrow(Yaml.parseResult(source));
61
- return Predicate.isObject(parsed) ? parsed : {};
62
- }
63
- /**
64
- * Render a workspace object from scratch: deterministic key sort +
65
- * stringify. `options` defaults to the historical 2-space, unindented,
66
- * single-quoted style.
67
- *
68
- * @internal
69
- */
70
- function renderWorkspace(obj, options = STRINGIFY_OPTIONS) {
71
- return Result.getOrThrow(Yaml.stringifyResult(canonicalize(obj), options));
72
- }
73
- /**
74
- * The stringify options matching the style `source` already follows: indent
75
- * width, whether block sequences sit indented under their key, and quote
76
- * character. Lenient — a mixed file takes the dominant spelling — and a
77
- * dimension with no votes keeps the historical default.
78
- *
79
- * @internal
80
- */
81
- function inferWorkspaceStyle(source) {
82
- const { rules } = YamlLint.resolveLenient(YamlLint.observe(source, YamlLint.builtins), STYLE_BASE);
83
- const indentation = rules.indentation;
84
- const quoted = rules["quoted-strings"];
85
- return YamlStringifyOptions.make({
86
- indent: typeof indentation.spaces === "number" ? indentation.spaces : 2,
87
- indentSequences: indentation.indentSequences === true,
88
- quoteStyle: quoted.quoteType === "double" ? "double" : "single",
89
- lineWidth: 0
90
- });
91
- }
92
- /** Order-insensitive structural equality over canonical forms. */
93
- function sameValue(a, b) {
94
- return JSON.stringify(canonicalize(a)) === JSON.stringify(canonicalize(b));
95
- }
96
- /** A mapping (not a sequence, not null) — the only node the diff descends into. */
97
- function isMapping(v) {
98
- return Predicate.isObject(v) && !Array.isArray(v);
99
- }
100
- /**
101
- * Per-item edits for a primitive sequence present on both sides: remove the
102
- * items `next` no longer holds (highest index first, so earlier indices stay
103
- * valid) and append the ones it adds, in canonical order. Every other item's
104
- * line is untouched. Matching is by multiset, so a reorder is not a change.
105
- */
106
- function sequenceChanges(path, prev, next) {
107
- const key = (v) => JSON.stringify(v);
108
- const pending = /* @__PURE__ */ new Map();
109
- for (const v of next) pending.set(key(v), (pending.get(key(v)) ?? 0) + 1);
110
- const removed = [];
111
- prev.forEach((v, i) => {
112
- const n = pending.get(key(v)) ?? 0;
113
- if (n > 0) pending.set(key(v), n - 1);
114
- else removed.push(i);
115
- });
116
- const added = [];
117
- for (const v of next) {
118
- const n = pending.get(key(v)) ?? 0;
119
- if (n > 0) {
120
- added.push(v);
121
- pending.set(key(v), n - 1);
122
- }
123
- }
124
- added.sort((a, b) => Order.String(String(a), String(b)));
125
- const changes = added.map((v, i) => ({
126
- path: [...path, prev.length + i],
127
- value: v
128
- }));
129
- for (const i of removed.reverse()) changes.push({
130
- path: [...path, i],
131
- value: void 0
132
- });
133
- return changes;
134
- }
135
- /**
136
- * The minimal path-targeted changes taking `before` to `after`: descend
137
- * through mappings present on both sides, edit primitive sequences item by
138
- * item, and replace (or remove) any other value whose canonical form differs.
139
- */
140
- function workspaceChanges(before, after, prefix = []) {
141
- const changes = [];
142
- for (const key of Object.keys(before)) if (!Object.hasOwn(after, key)) changes.push({
143
- path: [...prefix, key],
144
- value: void 0
145
- });
146
- for (const [key, next] of Object.entries(after)) {
147
- const path = [...prefix, key];
148
- if (!Object.hasOwn(before, key)) {
149
- changes.push({
150
- path,
151
- value: canonicalize(next),
152
- newKey: true
153
- });
154
- continue;
155
- }
156
- const prev = before[key];
157
- if (sameValue(prev, next)) continue;
158
- if (isMapping(prev) && isMapping(next)) changes.push(...workspaceChanges(prev, next, path));
159
- else if (Array.isArray(prev) && Array.isArray(next) && next.length > 0 && allPrimitive(prev) && allPrimitive(next)) changes.push(...sequenceChanges(path, prev, next));
160
- else changes.push({
161
- path,
162
- value: canonicalize(next)
163
- });
164
- }
165
- return changes;
166
- }
167
- /** Every scalar under `node`, with its role. */
168
- function* scalarsOf(node, role) {
169
- if (node === null) return;
170
- if (node._tag === "YamlScalar") yield [node, role];
171
- else if (node._tag === "YamlMap") for (const pair of node.items) {
172
- yield* scalarsOf(pair.key, "key");
173
- yield* scalarsOf(pair.value, "value");
174
- }
175
- else if (node._tag === "YamlSeq") for (const item of node.items) yield* scalarsOf(item, "item");
176
- }
177
- /** True when `s` would render plain, i.e. quoting it is a style choice rather than a requirement. */
178
- function couldBePlain(s) {
179
- const out = Yaml.stringifyResult(s, STRINGIFY_OPTIONS);
180
- return Result.isSuccess(out) && !/^['"]/.test(out.success);
181
- }
182
- /**
183
- * The quoting vote over `scalars`: positive when, among strings that need no
184
- * quotes, more are quoted than plain. Strings that must be quoted (`@scope/*`)
185
- * cast no vote, so scalars quoted only where required read as plain.
186
- */
187
- function quoteVote(scalars) {
188
- let vote = 0;
189
- for (const [scalar] of scalars) {
190
- if (typeof scalar.value !== "string" || !couldBePlain(scalar.value)) continue;
191
- vote += scalar.style === "plain" ? -1 : 1;
192
- }
193
- return vote;
194
- }
195
- /** The roles in which the whole document quotes strings by choice: the fallback when siblings give no vote. */
196
- function quotedRoles(doc) {
197
- const all = [...scalarsOf(doc, "value")];
198
- return new Set([
199
- "key",
200
- "value",
201
- "item"
202
- ].filter((r) => quoteVote(all.filter(([, role]) => role === r)) > 0));
203
- }
204
- /** `s` as a quoted scalar in the given quote character. */
205
- function quote(s, style) {
206
- return style === "double" ? JSON.stringify(s) : `'${s.replaceAll("'", "''")}'`;
207
- }
208
- /** The scalar directly at `node` (not nested), with its role. */
209
- function directScalar(node, role) {
210
- return node?._tag === "YamlScalar" ? [[node, role]] : [];
211
- }
212
- /**
213
- * Quote the plain string scalars a change just wrote, where the file quotes
214
- * by choice. The stringifier only quotes what it must, so without this a
215
- * catalog that quotes every key gains a bare `vitest:` beside `"effect":`.
216
- * The written node's own key, value or item follows its siblings' vote, which
217
- * keeps the choice local (a file can quote catalog keys yet leave top-level
218
- * keys plain); scalars nested deeper in a new subtree, or a node whose
219
- * siblings cast no vote, follow the whole document's roles. Only the written
220
- * subtree is touched (plus its key when the key is new).
221
- */
222
- function requoteWritten(text, change, docRoles, style) {
223
- if (change.value === void 0) return text;
224
- const doc = YamlDocument.parseResult(text);
225
- if (Result.isFailure(doc) || doc.success.contents === null) return text;
226
- const root = doc.success.contents;
227
- const last = change.path[change.path.length - 1];
228
- const parent = change.path.length > 1 ? root.find(change.path.slice(0, -1)) : Option.some(root);
229
- if (Option.isNone(parent)) return text;
230
- const container = parent.value;
231
- const decide = (vote, role) => vote !== 0 ? vote > 0 : docRoles.has(role);
232
- const targets = [];
233
- const deep = (node) => {
234
- if (node === null || node._tag === "YamlScalar") return;
235
- for (const [scalar, role] of scalarsOf(node, "value")) targets.push([scalar, docRoles.has(role)]);
236
- };
237
- if (container._tag === "YamlMap") {
238
- const index = container.items.findIndex((p) => p.key._tag === "YamlScalar" && String(p.key.value) === String(last));
239
- const pair = container.items[index];
240
- if (pair === void 0) return text;
241
- const siblings = container.items.filter((_, i) => i !== index);
242
- if (change.newKey) {
243
- const vote = quoteVote(siblings.flatMap((p) => directScalar(p.key, "key")));
244
- for (const [scalar] of directScalar(pair.key, "key")) targets.push([scalar, decide(vote, "key")]);
245
- }
246
- const vote = quoteVote(siblings.flatMap((p) => directScalar(p.value, "value")));
247
- for (const [scalar] of directScalar(pair.value, "value")) targets.push([scalar, decide(vote, "value")]);
248
- deep(pair.value);
249
- } else if (container._tag === "YamlSeq" && typeof last === "number") {
250
- const item = container.items[last] ?? null;
251
- const vote = quoteVote(container.items.filter((_, i) => i !== last).flatMap((n) => directScalar(n, "item")));
252
- for (const [scalar] of directScalar(item, "item")) targets.push([scalar, decide(vote, "item")]);
253
- deep(item);
254
- }
255
- const edits = targets.filter(([s, quoted]) => quoted && s.style === "plain" && typeof s.value === "string" && s.tag === void 0).map(([s]) => ({
256
- offset: s.offset,
257
- length: s.length,
258
- content: quote(s.value, style)
259
- })).sort((a, b) => b.offset - a.offset);
260
- let out = text;
261
- for (const e of edits) out = out.slice(0, e.offset) + e.content + out.slice(e.offset + e.length);
262
- return out;
263
- }
264
- /** True when some mapping in `node` holds two keys that read as the same string (`1:` and `'1':`). */
265
- function hasCollidingKeys(node) {
266
- if (node === null) return false;
267
- if (node._tag === "YamlMap") {
268
- const seen = /* @__PURE__ */ new Set();
269
- for (const { key, value } of node.items) {
270
- const k = key._tag === "YamlScalar" ? String(key.value) : JSON.stringify(key);
271
- if (seen.has(k)) return true;
272
- seen.add(k);
273
- if (hasCollidingKeys(value)) return true;
274
- }
275
- } else if (node._tag === "YamlSeq") return node.items.some(hasCollidingKeys);
276
- return false;
277
- }
278
- /**
279
- * True when `text` parses to exactly `next` (canonically) with no colliding
280
- * keys. The edit model and the parsed object can disagree — anchors and
281
- * aliases (a removed `&b` leaves a dangling `*b`; a splice under an anchor
282
- * changes every alias), merge keys, non-string keys — and this is the one
283
- * check that catches all of them.
284
- */
285
- function faithful(text, next) {
286
- const doc = YamlDocument.parseResult(text);
287
- if (Result.isFailure(doc) || hasCollidingKeys(doc.success.contents)) return false;
288
- const value = Yaml.parseResult(text);
289
- return Result.isSuccess(value) && sameValue(isMapping(value.success) ? value.success : {}, next);
290
- }
291
- /**
292
- * Whether a change puts a primitive over an existing scalar. `modify` splices
293
- * that in place, keeping the scalar's own quotes and trailing comment, so it
294
- * must not be re-quoted to match its siblings: the author's spelling of that
295
- * one value stands.
296
- */
297
- function replacesScalar(text, change) {
298
- const { value } = change;
299
- if (change.newKey || typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") return false;
300
- const doc = YamlDocument.parseResult(text);
301
- if (Result.isFailure(doc) || doc.success.contents === null) return false;
302
- const target = doc.success.contents.find(change.path);
303
- return Option.isSome(target) && target.value._tag === "YamlScalar";
304
- }
305
- /** Apply every change as an edit; `None` when the editor refuses one. */
306
- function applyChanges(source, changes, style) {
307
- const docRoot = YamlDocument.parseResult(source);
308
- const roles = Result.isSuccess(docRoot) ? quotedRoles(docRoot.success.contents) : /* @__PURE__ */ new Set();
309
- const quoteChar = style.quoteStyle ?? "single";
310
- let text = source;
311
- for (const change of changes) {
312
- const keepSpelling = replacesScalar(text, change);
313
- const result = YamlFormat.modifyToStringResult(text, change.path, change.value, style);
314
- if (Result.isFailure(result)) return Option.none();
315
- text = keepSpelling ? result.success : requoteWritten(result.success, change, roles, quoteChar);
316
- }
317
- return Option.some(text);
318
- }
319
- /**
320
- * Write `next` over an existing pnpm-workspace.yaml `source` as targeted
321
- * edits rather than a re-render, so comments, key order and unchanged lines
322
- * survive. A changed scalar is spliced in place keeping its quotes and
323
- * comment; a primitive list gains or loses only the items that changed; and
324
- * inserted content takes the style the file already follows (see
325
- * {@link inferWorkspaceStyle}), including quoting keys, values or list items
326
- * where the file quotes them by choice. New keys append to their mapping, and
327
- * a CRLF file stays CRLF.
328
- *
329
- * An empty source renders from scratch exactly as {@link renderWorkspace}
330
- * does. A source with no mapping to edit, one the editor refuses
331
- * (multi-document, directives), or an edit result that does not parse back to
332
- * exactly `next` (anchors, merge keys, colliding keys) is re-rendered whole
333
- * in its inferred style instead.
334
- *
335
- * @internal
336
- */
337
- function writeWorkspace(source, next) {
338
- if (source.trim() === "") return renderWorkspace(next);
339
- const parsed = Result.getOrThrow(Yaml.parseResult(source));
340
- const style = inferWorkspaceStyle(source);
341
- const crlf = source.includes("\r\n");
342
- const edited = isMapping(parsed) ? applyChanges(source, workspaceChanges(parsed, next), style) : Option.none();
343
- const text = Option.isSome(edited) && faithful(edited.value, next) ? edited.value : renderWorkspace(next, style);
344
- return crlf ? text.replace(/\r?\n/g, "\r\n") : text;
345
- }
346
-
347
- export { canonicalize, findWorkspaceFile, inferWorkspaceStyle, parseWorkspace, renderWorkspace, writeWorkspace };
@@ -1,252 +0,0 @@
1
- import { Bool, Num, Str, StringArray, StringRecord, UnknownRecord } from "./schemas.js";
2
- import { Schema } from "effect";
3
-
4
- // src/descriptors/build.ts
5
- /** The 26 build / scripts + patches + injection fields. @internal */
6
- const build = {
7
- onlyBuiltDependencies: {
8
- schema: StringArray,
9
- kind: "stringArray",
10
- strategy: "arrayUnion",
11
- enforcement: "warn",
12
- doc: "Packages whose build scripts are allowed to run; others are blocked.",
13
- workspaceYaml: true,
14
- anchor: "onlybuiltdependencies"
15
- },
16
- onlyBuiltDependenciesFile: {
17
- schema: Str,
18
- kind: "string",
19
- strategy: "scalar",
20
- enforcement: "warn",
21
- doc: "Path to a JSON file listing packages whose build scripts are allowed.",
22
- workspaceYaml: true,
23
- anchor: "onlybuiltdependenciesfile"
24
- },
25
- neverBuiltDependencies: {
26
- schema: StringArray,
27
- kind: "stringArray",
28
- strategy: "arrayUnion",
29
- enforcement: "absent",
30
- doc: "Packages whose build scripts are never executed.",
31
- workspaceYaml: true,
32
- anchor: "neverbuiltdependencies"
33
- },
34
- ignoredBuiltDependencies: {
35
- schema: StringArray,
36
- kind: "stringArray",
37
- strategy: "arrayUnion",
38
- enforcement: "absent",
39
- doc: "Packages excluded from the list of dependencies to build.",
40
- workspaceYaml: true,
41
- anchor: "ignoredbuiltdependencies"
42
- },
43
- dangerouslyAllowAllBuilds: {
44
- schema: Bool,
45
- kind: "boolean",
46
- strategy: "scalar",
47
- enforcement: "warn",
48
- doc: "When true, all build scripts are allowed to run without restriction.",
49
- workspaceYaml: true,
50
- anchor: "dangerouslyallowallbuilds"
51
- },
52
- ignoreScripts: {
53
- schema: Bool,
54
- kind: "boolean",
55
- strategy: "scalar",
56
- enforcement: "absent",
57
- doc: "Whether lifecycle scripts of packages in node_modules are not executed.",
58
- workspaceYaml: true,
59
- anchor: "ignorescripts"
60
- },
61
- ignoreDepScripts: {
62
- schema: Bool,
63
- kind: "boolean",
64
- strategy: "scalar",
65
- enforcement: "absent",
66
- doc: "Whether lifecycle scripts of dependencies are ignored during install.",
67
- workspaceYaml: true,
68
- anchor: "ignoredepscripts"
69
- },
70
- childConcurrency: {
71
- schema: Num,
72
- kind: "number",
73
- strategy: "scalar",
74
- enforcement: "absent",
75
- doc: "Maximum number of child processes that build scripts can spawn concurrently.",
76
- workspaceYaml: true,
77
- anchor: "childconcurrency"
78
- },
79
- sideEffectsCache: {
80
- schema: Bool,
81
- kind: "boolean",
82
- strategy: "scalar",
83
- enforcement: "absent",
84
- doc: "Whether the results of running install scripts are cached.",
85
- workspaceYaml: true,
86
- anchor: "sideeffectscache"
87
- },
88
- sideEffectsCacheReadonly: {
89
- schema: Bool,
90
- kind: "boolean",
91
- strategy: "scalar",
92
- enforcement: "absent",
93
- doc: "Whether the side effects cache is used but never updated.",
94
- workspaceYaml: true,
95
- anchor: "sideeffectscachereadonly"
96
- },
97
- nodeOptions: {
98
- schema: Str,
99
- kind: "string",
100
- strategy: "scalar",
101
- enforcement: "absent",
102
- doc: "Options passed to Node.js via NODE_OPTIONS when running scripts.",
103
- workspaceYaml: true,
104
- anchor: "nodeoptions"
105
- },
106
- verifyDepsBeforeRun: {
107
- schema: Schema.Union([Schema.Literals([
108
- "install",
109
- "warn",
110
- "error",
111
- "prompt"
112
- ]), Schema.Boolean]),
113
- kind: "union",
114
- strategy: "scalar",
115
- enforcement: "absent",
116
- doc: "Whether pnpm verifies that the install is up to date before running scripts.",
117
- workspaceYaml: true,
118
- anchor: "verifydepsbeforerun",
119
- samples: {
120
- valid: ["install", false],
121
- invalid: ["x"]
122
- }
123
- },
124
- enablePrePostScripts: {
125
- schema: Bool,
126
- kind: "boolean",
127
- strategy: "scalar",
128
- enforcement: "absent",
129
- doc: "Whether pre/post lifecycle scripts are run automatically alongside the main script.",
130
- workspaceYaml: true,
131
- anchor: "enableprepostscripts"
132
- },
133
- scriptShell: {
134
- schema: Str,
135
- kind: "string",
136
- strategy: "scalar",
137
- enforcement: "absent",
138
- doc: "The shell used to execute scripts.",
139
- workspaceYaml: true,
140
- anchor: "scriptshell"
141
- },
142
- shellEmulator: {
143
- schema: Bool,
144
- kind: "boolean",
145
- strategy: "scalar",
146
- enforcement: "absent",
147
- doc: "Whether a POSIX shell emulator is used when running scripts on Windows.",
148
- workspaceYaml: true,
149
- anchor: "shellemulator"
150
- },
151
- requiredScripts: {
152
- schema: StringArray,
153
- kind: "stringArray",
154
- strategy: "arrayUnion",
155
- enforcement: "absent",
156
- doc: "Scripts that must exist in every project matching the current filter.",
157
- workspaceYaml: true,
158
- anchor: "requiredscripts"
159
- },
160
- patchedDependencies: {
161
- schema: StringRecord,
162
- kind: "stringRecord",
163
- strategy: "mapChildWins",
164
- enforcement: "warn",
165
- doc: "Patches applied to dependencies, keyed by package identifier.",
166
- workspaceYaml: true,
167
- anchor: "patcheddependencies"
168
- },
169
- allowUnusedPatches: {
170
- schema: Bool,
171
- kind: "boolean",
172
- strategy: "scalar",
173
- enforcement: "absent",
174
- doc: "Whether unused patches (patches that apply to no installed package) are allowed.",
175
- workspaceYaml: true,
176
- anchor: "allowunusedpatches"
177
- },
178
- allowNonAppliedPatches: {
179
- schema: Bool,
180
- kind: "boolean",
181
- strategy: "scalar",
182
- enforcement: "absent",
183
- doc: "Whether non-applied patches (patches that fail to apply) are allowed.",
184
- workspaceYaml: true,
185
- anchor: "allownonappliedpatches"
186
- },
187
- ignorePatchFailures: {
188
- schema: Bool,
189
- kind: "boolean",
190
- strategy: "scalar",
191
- enforcement: "absent",
192
- doc: "Whether patch failures are silently ignored during installation.",
193
- workspaceYaml: true,
194
- anchor: "ignorepatchfailures"
195
- },
196
- patchesDir: {
197
- schema: Str,
198
- kind: "string",
199
- strategy: "scalar",
200
- enforcement: "absent",
201
- doc: "Directory where patch files are stored (default: patches).",
202
- workspaceYaml: true,
203
- anchor: "patchesdir"
204
- },
205
- configDependencies: {
206
- schema: StringRecord,
207
- kind: "stringRecord",
208
- strategy: "mapChildWins",
209
- enforcement: "absent",
210
- doc: "Packages installed before other packages so their config scripts can run first.",
211
- workspaceYaml: true,
212
- anchor: "configdependencies"
213
- },
214
- executionEnv: {
215
- schema: UnknownRecord,
216
- kind: "unknownRecord",
217
- strategy: "mapChildWins",
218
- enforcement: "absent",
219
- doc: "Environment variables applied when running scripts.",
220
- workspaceYaml: true,
221
- anchor: "executionenv"
222
- },
223
- injectWorkspacePackages: {
224
- schema: Bool,
225
- kind: "boolean",
226
- strategy: "scalar",
227
- enforcement: "absent",
228
- doc: "Whether local workspace packages are injected instead of symlinked.",
229
- workspaceYaml: true,
230
- anchor: "injectworkspacepackages"
231
- },
232
- syncInjectedDepsAfterScripts: {
233
- schema: StringArray,
234
- kind: "stringArray",
235
- strategy: "arrayUnion",
236
- enforcement: "absent",
237
- doc: "Scripts after which injected dependencies are re-synced.",
238
- workspaceYaml: true,
239
- anchor: "syncinjecteddepsafterscripts"
240
- },
241
- dedupeInjectedDeps: {
242
- schema: Bool,
243
- kind: "boolean",
244
- strategy: "scalar",
245
- enforcement: "absent",
246
- doc: "Whether injected workspace packages are deduplicated.",
247
- workspaceYaml: true,
248
- anchor: "dedupeinjecteddeps"
249
- }
250
- };
251
-
252
- export { build };