Repository navigation
Expand file tree
/
Copy pathpnpm-workspace.yaml
More file actions
428 lines (415 loc) · 17.8 KB
/
Copy pathpnpm-workspace.yaml
File metadata and controls
428 lines (415 loc) · 17.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
packages:
- apps/*
- crates/*
- packages/*
# Depth 3, so `packages/*` does not reach it. Listed explicitly because
# `cleanupUnusedCatalogs` below decides what is used by asking pnpm, and pnpm
# only knows about workspace members: outside the globs the playground's two
# `catalog:` references resolve for nobody, and the next install deleted
# `bundlers.vite-plugin-inspect` -- declared here and nowhere else -- leaving
# the manifest pointing at an entry that no longer exists. Adding it is also
# what makes `pnpm -C playground run dev` (the `play` script in
# `packages/unplugin`) install anything at all.
- packages/unplugin/playground
autoInstallPeers: true
# `prefer`, deliberately not `strict`. Strict makes a plain `pnpm add <dep>`
# fail whenever the dependency is not already catalogued, and with named
# catalogs the fix is a judgement call about *which* catalog -- one the error
# cannot make for you. `prefer` reuses the catalogued range automatically when
# there is one, and leaves teaching the convention to a check that can name the
# file, the dependency and a suggested catalog. That check is
# `scripts/git/catalog-integrity.mjs`, which pre-commit and CI both run through
# `scripts/git/version-mismatch-check.sh`.
catalogMode: prefer
# Every manifest now references a catalog, so an entry nothing references is
# rot with no reason to survive and the next install removes it. What "nothing
# references" means is worth stating: pnpm reads the workspace *members*, not
# the manifests syncpack lints -- the two sets differ, which is why the
# playground is listed explicitly above.
cleanupUnusedCatalogs: true
dedupePeerDependents: true
linkWorkspacePackages: deep
minimumReleaseAge: 4320
verifyDepsBeforeRun: false
engineStrict: true
# The generated-fixture gate finds its checks through a `pretest` script, and
# `pretest` runs because this setting is on by default. Written down because
# the repository has lost that caller twice, and a default is not a promise.
enablePrePostScripts: true
minimumReleaseAgeExclude:
- '@octokit/*'
- '@yuku-codegen/*'
- '@yuku-parser/*'
- '@yuku-toolchain/types@0.8.2'
- '@jsonjoy.com/fs-core@4.66.1'
- '@jsonjoy.com/fs-fsa@4.66.1'
- '@jsonjoy.com/fs-node-builtins@4.66.1'
- '@jsonjoy.com/fs-node-to-fsa@4.66.1'
- '@jsonjoy.com/fs-node-utils@4.66.1'
- '@jsonjoy.com/fs-node@4.66.1'
- '@jsonjoy.com/fs-print@4.66.1'
- '@jsonjoy.com/fs-snapshot@4.66.1'
- 'memfs@4.66.1'
- 'tsx@4.23.5'
- 'webpack-dev-middleware@8.1.1'
- 'yuku-ast@0.8.2'
- 'yuku-codegen@0.8.2'
- 'yuku-parser@0.8.2'
nodeVersion: 24.18.0
preferWorkspacePackages: true
resolvePeersFromWorkspaceRoot: true
saveWorkspaceProtocol: rolling
strictPeerDependencies: false
# Every external dependency version in this workspace is declared here, once,
# by name -- manifests reference these entries with the `catalog:<name>`
# protocol instead of repeating a literal range. Drift stops being something
# to detect and becomes something you cannot express: you cannot diverge from
# a constant you reference by name. pnpm rewrites these references into real
# ranges during `pnpm pack` and `pnpm publish`, so nothing reaches npm
# consumers as a catalog reference.
#
# There is no default catalog. Every dependency has exactly one *development*
# range, in exactly one of the seven semantic catalogs below. `peers` is cut on
# a different axis and is not an eighth sibling of those seven -- see below.
#
# The seven are cut by what a dependency is *for* where it is referenced, not
# by who publishes it. Two boundaries are worth stating because the names
# alone do not settle them:
#
# - `bundlers` is anything that participates in producing a build artifact --
# the bundlers themselves and the loader/plugin ecosystem around them, plus
# the build orchestrators (`turbo`, `tsdown`). `tooling` is what you run
# *at* the repository rather than through a build: linters, formatters,
# release and hook plumbing.
# - `runtime` is libraries our own shipped code imports at run time
# (`chalk`, `fast-glob`, `picomatch`, `postcss`, `@stylexjs/*`). It does
# not mean "runs in a browser" -- most of this repo is a compiler, so its
# run time is a build step in somebody else's project.
#
# `peers` exists because a catalog key is a package name, so one package
# needing two ranges needs two catalogs. Nine packages are declared twice with
# genuinely different intent -- a narrow range we develop against and a wide
# range we accept from consumers. Those nine appear in a semantic catalog for
# their development range *and* in `peers` for the consumer range; that pairing
# is the only way one package legitimately appears twice. A package declared
# twice at the *same* range (`next-rspack`) is not one of them and has no
# `peers` entry.
#
# Syncpack no longer asserts anything about versions, and `.syncpackrc`'s group
# labels point here for the reason. Do not restore those checks. Removing its
# ignore-everything groups does not re-enable a useful check -- it restores
# syncpack's default of flagging any dependency whose specifier *string*
# differs across manifests, which fails on two states that are both correct:
# mid-migration, where a dependency reads `catalog:bundlers` in a migrated
# manifest and a literal range in one not yet migrated; and permanently, on the
# nine packages above, which read `catalog:peers` in `peerDependencies` and
# their semantic catalog everywhere else. Syncpack keeps its formatting,
# sorting and field-ordering duties, which live in `syncpack format` and are
# untouched by any of this.
catalogs:
bundlers:
'@babel/core': '^8.1.0'
'@farmfe/cli': '^1.0.5'
'@farmfe/core': '^1.7.11'
'@farmfe/plugin-react': '^1.2.6'
'@pmmmwh/react-refresh-webpack-plugin': '^0.6.3'
'@rollup/plugin-commonjs': '^29.0.3'
'@rollup/plugin-html': '^2.0.0'
'@rollup/plugin-node-resolve': '^16.0.3'
'@rollup/plugin-replace': '^6.0.3'
'@rollup/plugin-swc': '^0.4.1'
'@rsbuild/core': '^2.3.1'
'@rsbuild/plugin-react': '^2.1.1'
'@rspack/cli': '^2.3.1'
'@rspack/core': '^2.3.1'
'@rspack/dev-server': '^2.2.2'
'@swc/core': '^1.16.22'
'@vitejs/plugin-react': '^6.2.1'
'@vitejs/plugin-react-swc': '^4.3.3'
'@vitejs/plugin-vue': '^6.0.10'
'css-loader': '^7.1.5'
'css-minimizer-webpack-plugin': '^8.0.0'
'esbuild': '^0.28.2'
'file-loader': '^6.2.0'
'html-webpack-plugin': '^5.6.8'
'loader-utils': '^3.3.1'
'mini-css-extract-plugin': '^2.10.2'
'postcss-loader': '^8.2.1'
'rollup': '^4.68.0'
'rollup-plugin-jsx-remove-attributes': '^3.1.2'
'rollup-plugin-node-externals': '^9.0.1'
'rollup-plugin-serve': '^3.0.0'
'swc-loader': '^0.2.7'
'tsdown': '^0.23.7'
'turbo': '^2.11.10'
'unplugin': '^3.7.0'
'vite': '^8.3.6'
'vite-plugin-inspect': '^12.1.0'
'vite-plugin-solid': '^2.11.15'
'webpack': '^5.112.2'
'webpack-cli': '^7.3.1'
'webpack-dev-server': '^6.1.0'
frameworks:
'@chromatic-com/storybook': '^5.6.0'
'@nuxt/kit': '^4.6.3'
'@nuxt/schema': '^4.6.4'
'@storybook/addon-a11y': '^10.6.5'
'@storybook/addon-docs': '^10.6.5'
'@storybook/addon-links': '^10.6.5'
'@storybook/addon-vitest': '^10.6.5'
'@storybook/react': '^10.6.5'
'@storybook/react-vite': '^10.6.5'
'next': '^16.4.5'
'next-rspack': '^16.4.3'
'react': '^19.3.1'
'react-dom': '^19.3.1'
'react-refresh': '^0.19.0'
'solid-js': '^1.9.17'
'storybook': '^10.6.5'
'vue': '^3.5.44'
internal:
'@stylexswc/ast': '0.20.2-rc.1'
'@stylexswc/atoms': '0.20.2-rc.1'
'@stylexswc/constants': '0.20.2-rc.1'
'@stylexswc/css': '0.20.2-rc.1'
'@stylexswc/css-parser': '0.20.2-rc.1'
'@stylexswc/design-system': '0.20.2-rc.1'
'@stylexswc/diagnostics': '0.20.2-rc.1'
'@stylexswc/enums': '0.20.2-rc.1'
'@stylexswc/evaluator': '0.20.2-rc.1'
'@stylexswc/jest': '0.20.2-rc.1'
'@stylexswc/logs': '0.20.2-rc.1'
'@stylexswc/macros': '0.20.2-rc.1'
'@stylexswc/nested-config': '0.20.2-rc.1'
'@stylexswc/nextjs-plugin': '0.20.2-rc.1'
'@stylexswc/path-resolver': '0.20.2-rc.1'
'@stylexswc/playwright': '0.20.2-rc.1'
'@stylexswc/plugin-shared': '0.20.2-rc.1'
'@stylexswc/postcss-plugin': '0.20.2-rc.1'
'@stylexswc/postcss-value-parser': '0.20.2-rc.1'
'@stylexswc/regex': '0.20.2-rc.1'
'@stylexswc/rollup-plugin': '0.20.2-rc.1'
'@stylexswc/rs-compiler': '0.20.2-rc.1'
'@stylexswc/rspack-plugin': '0.20.2-rc.1'
'@stylexswc/state': '0.20.2-rc.1'
'@stylexswc/state-index': '0.20.2-rc.1'
'@stylexswc/structures': '0.20.2-rc.1'
'@stylexswc/stylex-js': '0.20.2-rc.1'
'@stylexswc/stylex-styleq': '0.20.2-rc.1'
'@stylexswc/stylesheet': '0.20.2-rc.1'
'@stylexswc/transform': '0.20.2-rc.1'
'@stylexswc/turbopack-plugin': '0.20.2-rc.1'
'@stylexswc/types': '0.20.2-rc.1'
'@stylexswc/typescript-config': '0.20.2-rc.1'
'@stylexswc/unplugin': '0.20.2-rc.1'
'@stylexswc/utils': '0.20.2-rc.1'
'@stylexswc/webpack-plugin': '0.20.2-rc.1'
# The wide half of every package catalogued twice. These ranges are
# published as `peerDependencies`, so they say what a consumer may install,
# not what we develop against -- never narrow one to make a version problem
# here go away.
#
# A package listed here must still resolve to the same version as its narrow
# twin. The ranges differ on purpose, so only the lockfile shows a drift.
# `catalog-integrity.mjs duplicates` reads it. Two versions mean two copies
# of everything that depends on them, whose types are then unrelated.
#
# A package that appears only in `peerDependencies` drifts, because
# `autoInstallPeers` installs it from this range alone with nothing to keep
# it in step. Every package here also has a narrow-catalog dependency in the
# manifest that names it as a peer, so one resolution governs both and pnpm
# writes no `peers:` block into the lockfile at all.
#
# That leaves `duplicates` with nothing to compare, which is the point rather
# than a gap. Two things bring a pin back and give the check something to
# read again: a peer left without a narrow twin, and a twin bumped past the
# upper bound of the range here, which stops it satisfying the peer. Only
# `@farmfe/core` and `@swc/core` have such a bound; the rest are open `>=`.
# See `guidelines/SCRIPTS.md`.
peers:
'@farmfe/core': '>=1.7.11 <2.0.0'
'@nuxt/kit': '>=3.0.0'
'@nuxt/schema': '>=3.0.0'
'@swc/core': '^1'
'esbuild': '>=0.25.0'
'next': '>=15.0.0'
'rollup': '>=3.0.0'
'vite': '>=4.0.0'
'webpack': '>=5.0.0'
runtime:
'@stylexjs/babel-plugin': '0.19.2'
'@stylexjs/eslint-plugin': '^0.19.2'
'@stylexjs/open-props': '^0.11.1'
'@stylexjs/stylex': '^0.19.2'
'autoprefixer': '^10.6.2'
'browserslist': '^4.29.5'
'chalk': '^6.0.1'
'fast-glob': '^3.3.3'
'glob-parent': '^6.0.2'
'is-glob': '^4.0.3'
'lightningcss': '^1.32.0'
'picomatch': '^4.0.7'
'postcss': '^8.5.32'
'postcss-nesting': '^14.0.3'
'prop-types': '^15.8.1'
testing:
'@jest/globals': '^30.5.2'
'@jest/transform': '^30.5.2'
'@jest/types': '^30.5.1'
'@playwright/test': '^1.65.0'
'@swc/jest': '^0.2.39'
'@testing-library/jest-dom': '^7.0.1'
'@testing-library/react': '^16.3.3'
'@vitest/browser': '^5.0.5'
'@vitest/browser-playwright': '^5.1.0'
'@vitest/coverage-v8': '^5.1.0'
'jest': '^30.5.2'
'jest-chain-transform': '^0.0.8'
'jest-environment-jsdom': '30.5.2'
'jsdom': '^31.0.0'
'memfs': '^4.80.0'
'playwright': '^1.65.0'
'serve': '^14.2.7'
'tinybench': '^6.2.3'
'vitest': '^5.1.0'
tooling:
'@arethetypeswrong/cli': '^0.18.5'
'@arethetypeswrong/core': '^0.18.5'
'@commitlint/cli': '^21.2.4'
# `tooling` rather than `runtime`, despite the name: no code we ship
# imports this. It exists only because `@napi-rs/cli` pins it as an
# *exact* optional peer, so it belongs beside the CLI that pins it, and
# its range is exact for the same reason -- a caret here would not
# satisfy the pin.
'@emnapi/runtime': '2.0.0-beta.3'
'@napi-rs/cli': '^3.10.12'
'@taplo/cli': '^0.7.0'
'commitizen': '^4.3.2'
'cz-conventional-changelog': '^3.3.0'
'del-cli': '^8.0.1'
'eslint-plugin-react-hooks': '^7.1.1'
'eslint-plugin-storybook': '^10.6.6'
'eslint-plugin-turbo': '^2.11.10'
'esno': '^4.7.0'
'knip': '^6.44.2'
'lefthook': '^2.2.2'
'npm-run-all2': '^9.0.4'
'oxfmt': '^0.77.0'
'oxlint': '^1.92.0'
'postcss-value-parser': '^4.2.0'
'publint': '^0.3.25'
'rimraf': '^6.1.4'
'scripty': '3.0.0'
'shellcheck': '^4.1.0'
'syncpack': '^15.3.3'
'tsx': '^4.23.15'
types:
'@types/babel__core': '^7.20.5'
'@types/glob-parent': '^5.1.3'
'@types/is-glob': '^4.0.4'
'@types/loader-utils': '^3.0.0'
'@types/node': '^26.6.6'
'@types/picomatch': '^4.0.3'
'@types/react': '^19.3.0'
'@types/react-dom': '^19.3.0'
'oxlint-tsgolint': '7.0.2006'
'typescript': '7.0.2'
overrides:
'@babel/core@<7.26.10': '>=7.26.10'
'@babel/helpers@<7.26.10': '7.26.10'
'@babel/runtime@<7.26.10': '>=7.26.10'
'@eslint/plugin-kit@<0.3.3': '>=0.3.3 <1.0.0'
'@farmfe/core@<1.7.10': '>=1.7.11 <2.0.0'
'@isaacs/brace-expansion@<=5.0.0': '>=5.0.1 <6.0.0'
'@stylexjs/stylex@<0.17.3': '>=0.17.3'
'@types/webpack@<5.0.0': '>=5.0.0'
'ajv@>=7.0.0-alpha.0 <8.18.0': '>=8.18.0 <9.0.0'
'brace-expansion@>=1.0.0 <=1.1.12': '>=1.1.13 <2.0.0'
'brace-expansion@>=2.0.0 <=2.0.2': '>=2.0.3 <3.0.0'
'cross-spawn@<6.0.6': '>=6.0.6'
'cross-spawn@>=7.0.0 <7.0.5': '>=7.0.5'
'esbuild@<=0.24.2': '>=0.25.0'
'fast-uri@<= 3.1.0': '>=3.1.1'
'flatted@<3.4.2': '>=3.4.2 <4.0.0'
'form-data@>=4.0.0 <4.0.4': '>=4.0.4 <5.0.0'
'glob@>=10.2.0 <10.5.0': '>=10.5.0 <11.0.0'
'glob@>=11.0.0 <11.1.0': '>=11.1.0 <12.0.0'
'handlebars@<4.7.9': '>=4.7.9'
'http-proxy-middleware@<2.0.9': '>=2.0.9'
'http-proxy-middleware@>=3 <3.0.5': '>=3.0.5'
'js-yaml@<3.14.2': '>=3.14.2 <4.0.0'
'js-yaml@>=4.0.0 <4.1.1': '>=4.1.1 <5.0.0'
'koa@>=2.0.0 <2.16.4': '>=2.16.4 <3.0.0'
'lodash@<4.18.0': '>=4.18.0 <5.0.0'
'micromatch@<4.0.8': '>=4.0.8'
'minimatch@<3.1.4': '>=3.1.4 <4.0.0'
'minimatch@>=10.0.0 <10.2.3': '>=10.2.3 <11.0.0'
'minimatch@>=9.0.0 <9.0.7': '>=9.0.7 <10.0.0'
'nanoid@<3.3.8': '>=3.3.8'
'node-forge@<1.4.0': '>=1.4.0 <2.0.0'
'on-headers@<1.1.0': '>=1.1.0 <2.0.0'
'path-to-regexp@<0.1.13': '>=0.1.13'
'picomatch@<4.0.4': '>=4.0.4'
'postcss@<8.5.10': '>=8.5.10'
'qs@<6.14.2': '>=6.14.2 <7.0.0'
'rollup@>=4.0.0 <4.59.0': '>=4.59.0 <5.0.0'
'serialize-javascript@<=7.0.4': '>=7.0.5 <8.0.0'
'svgo@4.0.0': '4.0.1'
'tar@<7.5.8': '>=7.5.8 <8.0.0'
'tmp@<=0.2.3': '>=0.2.4 <1.0.0'
'webpack@<5.0.0': '>=5.0.0'
'yauzl@<3.2.1': '>=3.2.1 <4.0.0'
patchedDependencies:
'scripty@3.0.0': patches/scripty@3.0.0.patch
# `true` only where the script produces something the package needs to work --
# a platform binary, a native binding. A postinstall that merely prints or
# phones home gets `false`: the entry is the audit trail, so silence is not the
# same as approval.
allowBuilds:
# No-op unless asked. The `install` script is `scripts/build-from-source.js`,
# whose whole body is guarded by `npm_config_build_from_source === 'true'`;
# left alone it spawns nothing. The binding arrives prebuilt through the
# twelve `@parcel/watcher-<platform>` optional deps, so there is nothing for
# an approval to produce. Reached as a hard dependency of `jest-haste-map`
# since jest 30.5.
'@parcel/watcher': false
# Validates the native binding; on failure it shells out to
# `npm install --no-save @swc/wasm` and swaps the Rust binding for wasm. Three
# reasons that fallback is not worth having: prebuilt bindings exist for all
# six targets built here, so it never fires; `@swc/wasm` is absent from
# `pnpm-lock.yaml`, so what it installs is pruned as extraneous by the next
# `pnpm install`; and the `execSync` bypasses the lockfile,
# `minimumReleaseAge` and the supply-chain gate. If a binding ever does go
# missing, a loud failure at `require` beats a silent swap to wasm in a repo
# that exists to be fast -- see `guidelines/PERFORMANCE.md`.
'@swc/core': false
# Banner, not build. Both postinstalls are the same 62-line OpenCollective
# funding notice -- one `writeFileSync` into `os.tmpdir()` to avoid repeating
# itself, and an ANSI block on stdout. Nothing is compiled, downloaded or
# linked, so approving them would buy an advert.
'core-js': false
'core-js-pure': false
# Resolves and integrity-checks the platform binary behind `.bin/esbuild`.
'esbuild': true
# Denied, not approved. lefthook's postinstall runs `lefthook install -f`,
# and the `-f` is the problem: pnpm runs dependency postinstalls before the
# root `prepare`, so on a clone still carrying husky's
# `core.hooksPath=.husky/_` it force-writes lefthook's hooks into `.husky/_`
# -- resurrecting the directory this migration deletes. `prepare` ->
# `scripts/git/install-hooks.mjs` unsets the path first and then installs,
# which is the ordering that actually works. The postinstall also self-
# disables under CI, so approving it would buy nothing there either.
'lefthook': false
# Nothing to approve: 11.24.2 declares no `preinstall`/`install`/`postinstall`
# and ships no `binding.gyp`, yet pnpm still lists it under `ignoredBuilds`,
# so the entry cannot simply be deleted -- removing it re-raises
# `ERR_PNPM_IGNORED_BUILDS`. `false` because approving a script that does not
# exist only pre-approves whatever a future release adds; denied, that release
# has to be looked at first. The native binding arrives through the
# `@oxc-resolver/binding-*` optional deps, which no build step touches.
'oxc-resolver': false
# Picks between a prebuilt libvips and a source build; without it the native
# binding is the one thing sharp cannot do without.
'sharp': true
# `napi-postinstall` linking the correct platform binary.
'unrs-resolver': true