File tree 4 files changed +25
-1
lines changed
4 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 64
64
"@cloudflare/workers-types" : " ^4.20230307.0" ,
65
65
"@ryoppippi/unplugin-typia" : " ^1.2.0" ,
66
66
"@types/node" : " ^20.14.8" ,
67
+ "@types/semver" : " ^7.7.0" ,
67
68
"@typescript-eslint/eslint-plugin" : " ^8.7.0" ,
68
69
"@typescript-eslint/parser" : " ^8.7.0" ,
69
70
"@vitest/coverage-istanbul" : " ^3.0.8" ,
70
71
"eslint" : " ^9.17.0" ,
71
72
"hono" : " *" ,
72
73
"npm-run-all2" : " ^6.2.2" ,
73
74
"prettier" : " ^2.7.1" ,
75
+ "semver" : " ^7.7.1" ,
74
76
"tsup" : " ^8.4.0" ,
75
77
"typescript" : " ^5.8.2" ,
76
78
"vitest" : " ^3.0.8"
Original file line number Diff line number Diff line change 10
10
"skipLibCheck" : true ,
11
11
"noUnusedLocals" : false ,
12
12
"noUnusedParameters" : true ,
13
+ "resolveJsonModule" : true ,
13
14
"types" : [" node" , " @cloudflare/workers-types" ]
14
15
}
15
16
}
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:
3933
3933
languageName: node
3934
3934
linkType: hard
3935
3935
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
+
3936
3943
"@types/statuses@npm:^2.0.4":
3937
3944
version: 2.0.5
3938
3945
resolution: "@types/statuses@npm:2.0.5"
@@ -8370,13 +8377,15 @@ __metadata:
8370
8377
"@cloudflare/workers-types": "npm:^4.20230307.0"
8371
8378
"@ryoppippi/unplugin-typia": "npm:^1.2.0"
8372
8379
"@types/node": "npm:^20.14.8"
8380
+ "@types/semver": "npm:^7.7.0"
8373
8381
"@typescript-eslint/eslint-plugin": "npm:^8.7.0"
8374
8382
"@typescript-eslint/parser": "npm:^8.7.0"
8375
8383
"@vitest/coverage-istanbul": "npm:^3.0.8"
8376
8384
eslint: "npm:^9.17.0"
8377
8385
hono: "npm:*"
8378
8386
npm-run-all2: "npm:^6.2.2"
8379
8387
prettier: "npm:^2.7.1"
8388
+ semver: "npm:^7.7.1"
8380
8389
tsup: "npm:^8.4.0"
8381
8390
typescript: "npm:^5.8.2"
8382
8391
vitest: "npm:^3.0.8"
You can’t perform that action at this time.
0 commit comments