File tree Expand file tree Collapse file tree 4 files changed +25
-1
lines changed
Expand file tree Collapse file tree 4 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 6464 "@cloudflare/workers-types" : " ^4.20230307.0" ,
6565 "@ryoppippi/unplugin-typia" : " ^1.2.0" ,
6666 "@types/node" : " ^20.14.8" ,
67+ "@types/semver" : " ^7.7.0" ,
6768 "@typescript-eslint/eslint-plugin" : " ^8.7.0" ,
6869 "@typescript-eslint/parser" : " ^8.7.0" ,
6970 "@vitest/coverage-istanbul" : " ^3.0.8" ,
7071 "eslint" : " ^9.17.0" ,
7172 "hono" : " *" ,
7273 "npm-run-all2" : " ^6.2.2" ,
7374 "prettier" : " ^2.7.1" ,
75+ "semver" : " ^7.7.1" ,
7476 "tsup" : " ^8.4.0" ,
7577 "typescript" : " ^5.8.2" ,
7678 "vitest" : " ^3.0.8"
Original file line number Diff line number Diff line change 1010 "skipLibCheck" : true ,
1111 "noUnusedLocals" : false ,
1212 "noUnusedParameters" : true ,
13+ "resolveJsonModule" : true ,
1314 "types" : [" node" , " @cloudflare/workers-types" ]
1415 }
1516}
Original file line number Diff line number Diff line change 1- export default [ 'packages/*' , '!packages/bun-transpiler' ]
1+ import { satisfies } from 'semver'
2+ import { defineWorkspace } from 'vitest/config'
3+ import { devDependencies } from './package.json'
4+
5+ const honoVersion = devDependencies . hono
6+
7+ const config = [ 'packages/*' , '!packages/bun-transpiler' ]
8+
9+ if ( satisfies ( '3.0.0' , honoVersion ) ) {
10+ config . push ( '!packages/react-compat' )
11+ }
12+
13+ export default defineWorkspace ( config )
Original file line number Diff line number Diff line change @@ -3933,6 +3933,13 @@ __metadata:
39333933 languageName: node
39343934 linkType: hard
39353935
3936+ "@types/semver@npm:^7.7.0":
3937+ version: 7.7.0
3938+ resolution: "@types/semver@npm:7.7.0"
3939+ checksum: 6b5f65f647474338abbd6ee91a6bbab434662ddb8fe39464edcbcfc96484d388baad9eb506dff217b6fc1727a88894930eb1f308617161ac0f376fe06be4e1ee
3940+ languageName: node
3941+ linkType: hard
3942+
39363943"@types/statuses@npm:^2.0.4":
39373944 version: 2.0.5
39383945 resolution: "@types/statuses@npm:2.0.5"
@@ -8370,13 +8377,15 @@ __metadata:
83708377 "@cloudflare/workers-types": "npm:^4.20230307.0"
83718378 "@ryoppippi/unplugin-typia": "npm:^1.2.0"
83728379 "@types/node": "npm:^20.14.8"
8380+ "@types/semver": "npm:^7.7.0"
83738381 "@typescript-eslint/eslint-plugin": "npm:^8.7.0"
83748382 "@typescript-eslint/parser": "npm:^8.7.0"
83758383 "@vitest/coverage-istanbul": "npm:^3.0.8"
83768384 eslint: "npm:^9.17.0"
83778385 hono: "npm:*"
83788386 npm-run-all2: "npm:^6.2.2"
83798387 prettier: "npm:^2.7.1"
8388+ semver: "npm:^7.7.1"
83808389 tsup: "npm:^8.4.0"
83818390 typescript: "npm:^5.8.2"
83828391 vitest: "npm:^3.0.8"
You can’t perform that action at this time.
0 commit comments