mirror of
https://github.com/cloudflare/cloudflare-os.git
synced 2026-11-25 02:38:04 +08:00
vite-plus 1.0.0 is the only VoidZero package that can move within the
24h minimumReleaseAge window without breaking the toolchain:
- vite stays 7.3.6: Vite 8's Oxc leaves Stage-3 decorators unlowered,
so every workerd suite importing a `@validateRpc()` class fails with
"SyntaxError: Invalid or unexpected token" (re-verified on 8.3.1; see
the catalog comment).
- vitest stays ^4.1.11: @cloudflare/vitest-pool-workers 0.22.0 peers
vitest ^4.1.0.
- @vitejs/plugin-react stays ^5.2.0: 6.x requires vite ^8.
Migration for 1.0:
- Override `vite@*` instead of bare `vite`, so vite-plus keeps its
`vite` -> @voidzero-dev/vite-plus-core alias instead of having vite 7
substituted under `vp`.
- Move task `env`/`input`/`output` under `cache` (vite-task#749), in the
package configs and the shared task builders.
- Import the oxlint plugin types and RuleTester from
`vite-plus/lint/plugins{,-dev}` and drop the separately pinned
@oxlint/plugins dependency, its drift test and dependabot ignore.
- oxlint 1.85: use toSorted() on three freshly built arrays, and turn
off react/globals for workshop-frontend tests, whose hook probes
assign to an outer `let` on purpose.
60 lines
1.6 KiB
JSON
60 lines
1.6 KiB
JSON
{
|
|
"name": "@gadgets/scripts",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"bin": {
|
|
"gadgets-with-timeout": "./with-timeout.ts",
|
|
"gadgets-build-configurator": "./build-gatekeeper-configurator.ts",
|
|
"gadgets-clean-error-reporting": "./clean-error-reporting-artifacts.ts"
|
|
},
|
|
"exports": {
|
|
"./vitest-task": {
|
|
"types": "./vitest-task-vite-config.ts",
|
|
"import": "./vitest-task-vite-config.ts"
|
|
},
|
|
"./gatekeeper-configurator": {
|
|
"types": "./gatekeeper-configurator-vite-config.ts",
|
|
"import": "./gatekeeper-configurator-vite-config.ts"
|
|
},
|
|
"./assert-workerd": {
|
|
"types": "./assert-workerd.ts",
|
|
"import": "./assert-workerd.ts"
|
|
},
|
|
"./bin-entry": {
|
|
"types": "./bin-entry.ts",
|
|
"import": "./bin-entry.ts"
|
|
},
|
|
"./pnpm-command": {
|
|
"types": "./pnpm-command.ts",
|
|
"import": "./pnpm-command.ts"
|
|
},
|
|
"./kill-process-tree": {
|
|
"types": "./kill-process-tree.ts",
|
|
"import": "./kill-process-tree.ts"
|
|
},
|
|
"./release/manifest-lib": {
|
|
"types": "./release/manifest-lib.ts",
|
|
"import": "./release/manifest-lib.ts"
|
|
},
|
|
"./worker-config": {
|
|
"types": "./worker-config.ts",
|
|
"import": "./worker-config.ts"
|
|
},
|
|
"./oxlint-plugin": "./oxlint-plugin.ts"
|
|
},
|
|
"dependencies": {
|
|
"@cloudflare/config": "0.20.0",
|
|
"aws4fetch": "^1.0.20",
|
|
"jsonc-parser": "^3.3.1",
|
|
"typescript6": "catalog:",
|
|
"vite": "catalog:",
|
|
"zod": "catalog:"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "26.1.0",
|
|
"jsdom": "^26.1.0",
|
|
"vite-plus": "catalog:"
|
|
}
|
|
}
|