From 1c0d1b6d28ff8b84293af068cec8495c6f54e935 Mon Sep 17 00:00:00 2001 From: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Date: Mon, 18 May 2026 19:50:36 +0900 Subject: [PATCH] chore: use pnpm catalog for some packages --- examples/emotion/package.json | 2 +- examples/jsx-remove-attributes/package.json | 2 +- examples/package.json | 2 +- examples/styled-jsx/package.json | 2 +- examples/transform-imports/package.json | 2 +- .../benchmark-utils/package.json | 2 +- internal-packages/swc-output-gen/package.json | 16 +-- packages/babel/package.json | 4 +- packages/emotion/benchmark/package.json | 10 +- packages/emotion/package.json | 4 +- .../benchmark/package.json | 10 +- packages/jsx-remove-attributes/package.json | 4 +- packages/oxc-unshadowed-visitor/package.json | 2 +- packages/styled-jsx/benchmark/package.json | 10 +- packages/styled-jsx/package.json | 4 +- .../transform-imports/benchmark/package.json | 10 +- packages/transform-imports/package.json | 2 +- pnpm-lock.yaml | 121 +++++++++++------- pnpm-workspace.yaml | 11 ++ 19 files changed, 132 insertions(+), 88 deletions(-) diff --git a/examples/emotion/package.json b/examples/emotion/package.json index d325b62..58264c4 100644 --- a/examples/emotion/package.json +++ b/examples/emotion/package.json @@ -18,6 +18,6 @@ "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^6.0.2", - "vite": "^8.0.13" + "vite": "catalog:" } } diff --git a/examples/jsx-remove-attributes/package.json b/examples/jsx-remove-attributes/package.json index 14a14f9..820dc8a 100644 --- a/examples/jsx-remove-attributes/package.json +++ b/examples/jsx-remove-attributes/package.json @@ -16,6 +16,6 @@ "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^6.0.2", - "vite": "^8.0.13" + "vite": "catalog:" } } diff --git a/examples/package.json b/examples/package.json index bc4ea74..5cfda1a 100644 --- a/examples/package.json +++ b/examples/package.json @@ -9,6 +9,6 @@ }, "devDependencies": { "playwright-chromium": "^1.60.0", - "vite": "^8.0.13" + "vite": "catalog:" } } diff --git a/examples/styled-jsx/package.json b/examples/styled-jsx/package.json index 2eba6b4..f45c6b1 100644 --- a/examples/styled-jsx/package.json +++ b/examples/styled-jsx/package.json @@ -17,6 +17,6 @@ "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^6.0.2", - "vite": "^8.0.13" + "vite": "catalog:" } } diff --git a/examples/transform-imports/package.json b/examples/transform-imports/package.json index 79edba8..d42d879 100644 --- a/examples/transform-imports/package.json +++ b/examples/transform-imports/package.json @@ -9,6 +9,6 @@ }, "devDependencies": { "@rolldown/plugin-transform-imports": "workspace:*", - "vite": "^8.0.13" + "vite": "catalog:" } } diff --git a/internal-packages/benchmark-utils/package.json b/internal-packages/benchmark-utils/package.json index 7922767..bcde270 100644 --- a/internal-packages/benchmark-utils/package.json +++ b/internal-packages/benchmark-utils/package.json @@ -8,6 +8,6 @@ "./seeded-random": "./src/seeded-random.ts" }, "devDependencies": { - "@oxc-node/core": "^0.1.0" + "@oxc-node/core": "catalog:" } } diff --git a/internal-packages/swc-output-gen/package.json b/internal-packages/swc-output-gen/package.json index 0256647..0bc3ec8 100644 --- a/internal-packages/swc-output-gen/package.json +++ b/internal-packages/swc-output-gen/package.json @@ -7,14 +7,14 @@ "generate": "oxnode src/index.ts" }, "dependencies": { - "@oxc-node/cli": "^0.1.0", - "@rollup/plugin-swc": "^0.4.0", - "@swc/core": "^1.15.33", - "@swc/plugin-emotion": "^14.9.0", - "@swc/plugin-react-remove-properties": "^12.9.0", - "@swc/plugin-styled-jsx": "^13.9.0", - "@swc/plugin-transform-imports": "^12.9.0", - "rolldown": "^1.0.1", + "@oxc-node/cli": "catalog:", + "@rollup/plugin-swc": "catalog:", + "@swc/core": "catalog:", + "@swc/plugin-emotion": "catalog:", + "@swc/plugin-react-remove-properties": "catalog:", + "@swc/plugin-styled-jsx": "catalog:", + "@swc/plugin-transform-imports": "catalog:", + "rolldown": "catalog:", "tinyglobby": "^0.2.16" } } diff --git a/packages/babel/package.json b/packages/babel/package.json index 4700858..f8841c6 100644 --- a/packages/babel/package.json +++ b/packages/babel/package.json @@ -39,8 +39,8 @@ "@babel/runtime": "^8.0.0-rc.5", "@types/node": "^24.12.4", "@types/picomatch": "^4.0.3", - "rolldown": "1.0.1", - "vite": "^8.0.13" + "rolldown": "catalog:", + "vite": "catalog:" }, "peerDependencies": { "@babel/core": "^7.29.0 || ^8.0.0-rc.1", diff --git a/packages/emotion/benchmark/package.json b/packages/emotion/benchmark/package.json index 3073254..148873d 100644 --- a/packages/emotion/benchmark/package.json +++ b/packages/emotion/benchmark/package.json @@ -19,16 +19,16 @@ "devDependencies": { "@babel/core": "^7.29.0", "@emotion/babel-plugin": "^11.13.5", - "@oxc-node/cli": "^0.1.0", + "@oxc-node/cli": "catalog:", "@rolldown/benchmark-utils": "workspace:*", "@rolldown/plugin-babel": "file:../../babel", "@rolldown/plugin-emotion": "workspace:*", - "@rollup/plugin-swc": "^0.4.0", - "@swc/core": "^1.15.33", - "@swc/plugin-emotion": "^14.9.0", + "@rollup/plugin-swc": "catalog:", + "@swc/core": "catalog:", + "@swc/plugin-emotion": "catalog:", "@types/node": "^24.12.4", "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", - "rolldown": "^1.0.1" + "rolldown": "catalog:" } } diff --git a/packages/emotion/package.json b/packages/emotion/package.json index 8ce24a2..cf33003 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -37,9 +37,9 @@ }, "devDependencies": { "oxc-unshadowed-visitor": "workspace:*", - "rolldown": "^1.0.1", + "rolldown": "catalog:", "tinyglobby": "^0.2.16", - "vite": "^8.0.13" + "vite": "catalog:" }, "peerDependencies": { "rolldown": "^1.0.0-rc.9", diff --git a/packages/jsx-remove-attributes/benchmark/package.json b/packages/jsx-remove-attributes/benchmark/package.json index 51191fc..73a9daa 100644 --- a/packages/jsx-remove-attributes/benchmark/package.json +++ b/packages/jsx-remove-attributes/benchmark/package.json @@ -16,17 +16,17 @@ }, "devDependencies": { "@babel/core": "^7.29.0", - "@oxc-node/cli": "^0.1.0", + "@oxc-node/cli": "catalog:", "@rolldown/benchmark-utils": "workspace:*", "@rolldown/plugin-babel": "file:../../babel", "@rolldown/plugin-jsx-remove-attributes": "workspace:*", - "@rollup/plugin-swc": "^0.4.0", - "@swc/core": "^1.15.33", - "@swc/plugin-react-remove-properties": "^12.9.0", + "@rollup/plugin-swc": "catalog:", + "@swc/core": "catalog:", + "@swc/plugin-react-remove-properties": "catalog:", "@types/node": "^24.12.4", "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "babel-plugin-react-remove-properties": "^0.3.1", - "rolldown": "^1.0.1" + "rolldown": "catalog:" } } diff --git a/packages/jsx-remove-attributes/package.json b/packages/jsx-remove-attributes/package.json index 49cf62c..23f63cd 100644 --- a/packages/jsx-remove-attributes/package.json +++ b/packages/jsx-remove-attributes/package.json @@ -34,9 +34,9 @@ "rolldown-string": "^0.3.0" }, "devDependencies": { - "rolldown": "^1.0.1", + "rolldown": "catalog:", "tinyglobby": "^0.2.16", - "vite": "^8.0.13" + "vite": "catalog:" }, "peerDependencies": { "rolldown": "^1.0.0-rc.9", diff --git a/packages/oxc-unshadowed-visitor/package.json b/packages/oxc-unshadowed-visitor/package.json index 5e76fb8..b81d5c7 100644 --- a/packages/oxc-unshadowed-visitor/package.json +++ b/packages/oxc-unshadowed-visitor/package.json @@ -35,7 +35,7 @@ "@oxc-project/types": "^0.131.0", "oxc-parser": "^0.131.0", "oxc-walker": "^1.0.0", - "rolldown": "^1.0.1" + "rolldown": "catalog:" }, "peerDependencies": { "oxc-parser": "^0.121.0", diff --git a/packages/styled-jsx/benchmark/package.json b/packages/styled-jsx/benchmark/package.json index 0a22df1..a90b7d2 100644 --- a/packages/styled-jsx/benchmark/package.json +++ b/packages/styled-jsx/benchmark/package.json @@ -17,16 +17,16 @@ }, "devDependencies": { "@babel/core": "^7.29.0", - "@oxc-node/cli": "^0.1.0", + "@oxc-node/cli": "catalog:", "@rolldown/benchmark-utils": "workspace:*", "@rolldown/plugin-babel": "file:../../babel", "@rolldown/plugin-styled-jsx": "workspace:*", - "@rollup/plugin-swc": "^0.4.0", - "@swc/core": "^1.15.33", - "@swc/plugin-styled-jsx": "^13.9.0", + "@rollup/plugin-swc": "catalog:", + "@swc/core": "catalog:", + "@swc/plugin-styled-jsx": "catalog:", "@types/node": "^24.12.4", "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", - "rolldown": "^1.0.1" + "rolldown": "catalog:" } } diff --git a/packages/styled-jsx/package.json b/packages/styled-jsx/package.json index f8c06f1..0a28d5a 100644 --- a/packages/styled-jsx/package.json +++ b/packages/styled-jsx/package.json @@ -38,9 +38,9 @@ "rolldown-string": "^0.3.0" }, "devDependencies": { - "rolldown": "^1.0.1", + "rolldown": "catalog:", "tinyglobby": "^0.2.16", - "vite": "^8.0.13" + "vite": "catalog:" }, "peerDependencies": { "rolldown": "^1.0.0-rc.13", diff --git a/packages/transform-imports/benchmark/package.json b/packages/transform-imports/benchmark/package.json index e19bee7..af0e57c 100644 --- a/packages/transform-imports/benchmark/package.json +++ b/packages/transform-imports/benchmark/package.json @@ -11,15 +11,15 @@ "build:swc": "rolldown -c configs/swc.ts" }, "devDependencies": { - "@oxc-node/cli": "^0.1.0", + "@oxc-node/cli": "catalog:", "@rolldown/benchmark-utils": "workspace:*", "@rolldown/plugin-babel": "file:../../babel", "@rolldown/plugin-transform-imports": "workspace:*", - "@rollup/plugin-swc": "^0.4.0", - "@swc/core": "^1.15.33", - "@swc/plugin-transform-imports": "^12.9.0", + "@rollup/plugin-swc": "catalog:", + "@swc/core": "catalog:", + "@swc/plugin-transform-imports": "catalog:", "@types/node": "^24.12.4", "babel-plugin-transform-imports": "^2.0.0", - "rolldown": "^1.0.1" + "rolldown": "catalog:" } } diff --git a/packages/transform-imports/package.json b/packages/transform-imports/package.json index 79c18e0..d8bdd92 100644 --- a/packages/transform-imports/package.json +++ b/packages/transform-imports/package.json @@ -36,7 +36,7 @@ "rolldown-string": "^0.3.0" }, "devDependencies": { - "rolldown": "^1.0.1", + "rolldown": "catalog:", "tinyglobby": "^0.2.16" }, "peerDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0433d87..d553728 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,39 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +catalogs: + default: + '@oxc-node/cli': + specifier: ^0.1.0 + version: 0.1.0 + '@oxc-node/core': + specifier: ^0.1.0 + version: 0.1.0 + '@rollup/plugin-swc': + specifier: ^0.4.0 + version: 0.4.0 + '@swc/core': + specifier: ^1.15.33 + version: 1.15.33 + '@swc/plugin-emotion': + specifier: ^14.9.0 + version: 14.9.0 + '@swc/plugin-react-remove-properties': + specifier: ^12.9.0 + version: 12.9.0 + '@swc/plugin-styled-jsx': + specifier: ^13.9.0 + version: 13.9.0 + '@swc/plugin-transform-imports': + specifier: ^12.9.0 + version: 12.9.0 + rolldown: + specifier: ^1.0.1 + version: 1.0.1 + vite: + specifier: ^8.0.13 + version: 8.0.13 + importers: .: @@ -33,7 +66,7 @@ importers: specifier: ^1.60.0 version: 1.60.0 vite: - specifier: ^8.0.13 + specifier: 'catalog:' version: 8.0.13(@types/node@24.12.4)(esbuild@0.27.3) examples/emotion: @@ -64,7 +97,7 @@ importers: specifier: ^6.0.2 version: 6.0.2(@rolldown/plugin-babel@0.2.3(@babel/core@8.0.0-rc.5)(@babel/plugin-transform-runtime@8.0.0-rc.5(@babel/core@8.0.0-rc.5))(@babel/runtime@8.0.0-rc.5)(rolldown@1.0.1)(vite@8.0.13(@types/node@24.12.4)(esbuild@0.27.3)))(vite@8.0.13(@types/node@24.12.4)(esbuild@0.27.3)) vite: - specifier: ^8.0.13 + specifier: 'catalog:' version: 8.0.13(@types/node@24.12.4)(esbuild@0.27.3) examples/jsx-remove-attributes: @@ -89,7 +122,7 @@ importers: specifier: ^6.0.2 version: 6.0.2(@rolldown/plugin-babel@0.2.3(@babel/core@8.0.0-rc.5)(@babel/plugin-transform-runtime@8.0.0-rc.5(@babel/core@8.0.0-rc.5))(@babel/runtime@8.0.0-rc.5)(rolldown@1.0.1)(vite@8.0.13(@types/node@24.12.4)(esbuild@0.27.3)))(vite@8.0.13(@types/node@24.12.4)(esbuild@0.27.3)) vite: - specifier: ^8.0.13 + specifier: 'catalog:' version: 8.0.13(@types/node@24.12.4)(esbuild@0.27.3) examples/styled-jsx: @@ -117,7 +150,7 @@ importers: specifier: ^6.0.2 version: 6.0.2(@rolldown/plugin-babel@0.2.3(@babel/core@8.0.0-rc.5)(@babel/plugin-transform-runtime@8.0.0-rc.5(@babel/core@8.0.0-rc.5))(@babel/runtime@8.0.0-rc.5)(rolldown@1.0.1)(vite@8.0.13(@types/node@24.12.4)(esbuild@0.27.3)))(vite@8.0.13(@types/node@24.12.4)(esbuild@0.27.3)) vite: - specifier: ^8.0.13 + specifier: 'catalog:' version: 8.0.13(@types/node@24.12.4)(esbuild@0.27.3) examples/transform-imports: @@ -126,40 +159,40 @@ importers: specifier: workspace:* version: link:../../packages/transform-imports vite: - specifier: ^8.0.13 + specifier: 'catalog:' version: 8.0.13(@types/node@24.12.4)(esbuild@0.27.3) internal-packages/benchmark-utils: devDependencies: '@oxc-node/core': - specifier: ^0.1.0 + specifier: 'catalog:' version: 0.1.0 internal-packages/swc-output-gen: dependencies: '@oxc-node/cli': - specifier: ^0.1.0 + specifier: 'catalog:' version: 0.1.0 '@rollup/plugin-swc': - specifier: ^0.4.0 + specifier: 'catalog:' version: 0.4.0(@swc/core@1.15.33) '@swc/core': - specifier: ^1.15.33 + specifier: 'catalog:' version: 1.15.33 '@swc/plugin-emotion': - specifier: ^14.9.0 + specifier: 'catalog:' version: 14.9.0 '@swc/plugin-react-remove-properties': - specifier: ^12.9.0 + specifier: 'catalog:' version: 12.9.0 '@swc/plugin-styled-jsx': - specifier: ^13.9.0 + specifier: 'catalog:' version: 13.9.0 '@swc/plugin-transform-imports': - specifier: ^12.9.0 + specifier: 'catalog:' version: 12.9.0 rolldown: - specifier: ^1.0.1 + specifier: 'catalog:' version: 1.0.1 tinyglobby: specifier: ^0.2.16 @@ -190,10 +223,10 @@ importers: specifier: ^4.0.3 version: 4.0.3 rolldown: - specifier: 1.0.1 + specifier: 'catalog:' version: 1.0.1 vite: - specifier: ^8.0.13 + specifier: 'catalog:' version: 8.0.13(@types/node@24.12.4)(esbuild@0.27.3) packages/emotion: @@ -212,13 +245,13 @@ importers: specifier: workspace:* version: link:../oxc-unshadowed-visitor rolldown: - specifier: ^1.0.1 + specifier: 'catalog:' version: 1.0.1 tinyglobby: specifier: ^0.2.16 version: 0.2.16 vite: - specifier: ^8.0.13 + specifier: 'catalog:' version: 8.0.13(@types/node@24.12.4)(esbuild@0.27.3) packages/emotion/benchmark: @@ -243,7 +276,7 @@ importers: specifier: ^11.13.5 version: 11.13.5 '@oxc-node/cli': - specifier: ^0.1.0 + specifier: 'catalog:' version: 0.1.0 '@rolldown/benchmark-utils': specifier: workspace:* @@ -255,13 +288,13 @@ importers: specifier: workspace:* version: link:.. '@rollup/plugin-swc': - specifier: ^0.4.0 + specifier: 'catalog:' version: 0.4.0(@swc/core@1.15.33) '@swc/core': - specifier: ^1.15.33 + specifier: 'catalog:' version: 1.15.33 '@swc/plugin-emotion': - specifier: ^14.9.0 + specifier: 'catalog:' version: 14.9.0 '@types/node': specifier: ^24.12.4 @@ -273,7 +306,7 @@ importers: specifier: ^19.2.3 version: 19.2.3(@types/react@19.2.14) rolldown: - specifier: ^1.0.1 + specifier: 'catalog:' version: 1.0.1 packages/jsx-remove-attributes: @@ -283,13 +316,13 @@ importers: version: 0.3.0(rolldown@1.0.1) devDependencies: rolldown: - specifier: ^1.0.1 + specifier: 'catalog:' version: 1.0.1 tinyglobby: specifier: ^0.2.16 version: 0.2.16 vite: - specifier: ^8.0.13 + specifier: 'catalog:' version: 8.0.13(@types/node@24.12.4)(esbuild@0.27.3) packages/jsx-remove-attributes/benchmark: @@ -305,7 +338,7 @@ importers: specifier: ^7.29.0 version: 7.29.0 '@oxc-node/cli': - specifier: ^0.1.0 + specifier: 'catalog:' version: 0.1.0 '@rolldown/benchmark-utils': specifier: workspace:* @@ -317,13 +350,13 @@ importers: specifier: workspace:* version: link:.. '@rollup/plugin-swc': - specifier: ^0.4.0 + specifier: 'catalog:' version: 0.4.0(@swc/core@1.15.33) '@swc/core': - specifier: ^1.15.33 + specifier: 'catalog:' version: 1.15.33 '@swc/plugin-react-remove-properties': - specifier: ^12.9.0 + specifier: 'catalog:' version: 12.9.0 '@types/node': specifier: ^24.12.4 @@ -338,7 +371,7 @@ importers: specifier: ^0.3.1 version: 0.3.1 rolldown: - specifier: ^1.0.1 + specifier: 'catalog:' version: 1.0.1 packages/oxc-unshadowed-visitor: @@ -353,7 +386,7 @@ importers: specifier: ^1.0.0 version: 1.0.0(oxc-parser@0.131.0)(rolldown@1.0.1) rolldown: - specifier: ^1.0.1 + specifier: 'catalog:' version: 1.0.1 packages/pluginutils: @@ -384,13 +417,13 @@ importers: version: 0.3.0(rolldown@1.0.1) devDependencies: rolldown: - specifier: ^1.0.1 + specifier: 'catalog:' version: 1.0.1 tinyglobby: specifier: ^0.2.16 version: 0.2.16 vite: - specifier: ^8.0.13 + specifier: 'catalog:' version: 8.0.13(@types/node@24.12.4)(esbuild@0.27.3) packages/styled-jsx/benchmark: @@ -409,7 +442,7 @@ importers: specifier: ^7.29.0 version: 7.29.0 '@oxc-node/cli': - specifier: ^0.1.0 + specifier: 'catalog:' version: 0.1.0 '@rolldown/benchmark-utils': specifier: workspace:* @@ -421,13 +454,13 @@ importers: specifier: workspace:* version: link:.. '@rollup/plugin-swc': - specifier: ^0.4.0 + specifier: 'catalog:' version: 0.4.0(@swc/core@1.15.33) '@swc/core': - specifier: ^1.15.33 + specifier: 'catalog:' version: 1.15.33 '@swc/plugin-styled-jsx': - specifier: ^13.9.0 + specifier: 'catalog:' version: 13.9.0 '@types/node': specifier: ^24.12.4 @@ -439,7 +472,7 @@ importers: specifier: ^19.2.3 version: 19.2.3(@types/react@19.2.14) rolldown: - specifier: ^1.0.1 + specifier: 'catalog:' version: 1.0.1 packages/transform-imports: @@ -452,7 +485,7 @@ importers: version: 8.0.13(@types/node@24.12.4)(esbuild@0.27.3) devDependencies: rolldown: - specifier: ^1.0.1 + specifier: 'catalog:' version: 1.0.1 tinyglobby: specifier: ^0.2.16 @@ -461,7 +494,7 @@ importers: packages/transform-imports/benchmark: devDependencies: '@oxc-node/cli': - specifier: ^0.1.0 + specifier: 'catalog:' version: 0.1.0 '@rolldown/benchmark-utils': specifier: workspace:* @@ -473,13 +506,13 @@ importers: specifier: workspace:* version: link:.. '@rollup/plugin-swc': - specifier: ^0.4.0 + specifier: 'catalog:' version: 0.4.0(@swc/core@1.15.33) '@swc/core': - specifier: ^1.15.33 + specifier: 'catalog:' version: 1.15.33 '@swc/plugin-transform-imports': - specifier: ^12.9.0 + specifier: 'catalog:' version: 12.9.0 '@types/node': specifier: ^24.12.4 @@ -488,7 +521,7 @@ importers: specifier: ^2.0.0 version: 2.0.0 rolldown: - specifier: ^1.0.1 + specifier: 'catalog:' version: 1.0.1 scripts: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index cc57bf5..5e76324 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -7,6 +7,17 @@ packages: - scripts catalogs: + default: + '@oxc-node/core': ^0.1.0 + '@oxc-node/cli': ^0.1.0 + '@rollup/plugin-swc': ^0.4.0 + '@swc/core': ^1.15.33 + '@swc/plugin-emotion': ^14.9.0 + '@swc/plugin-react-remove-properties': ^12.9.0 + '@swc/plugin-styled-jsx': ^13.9.0 + '@swc/plugin-transform-imports': ^12.9.0 + rolldown: ^1.0.1 + vite: ^8.0.13 babel7: '@babel/core': ^7.29.0 '@babel/plugin-transform-runtime': ^7.29.0