Skip to content

Commit 426433b

Browse files
authored
Move @types/lodash and openapi-types to dependencies (#1420)
These type packages are referenced by the published declarations, so consumers require them at install time for correct type resolution. Moving them from devDependencies prevents downstream TypeScript errors whilst having no runtime impact. Signed-off-by: Sora Morimoto <[email protected]>
1 parent 522737a commit 426433b

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

.changeset/lazy-rules-guess.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"swagger-typescript-api": patch
3+
---
4+
5+
Move `@types/lodash` and `openapi-types` to dependencies
6+
7+
These type packages are referenced by the published declarations, so consumers
8+
require them at install time for correct type resolution. Moving them from
9+
`devDependencies` prevents downstream TypeScript errors whilst having no
10+
runtime impact.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"dependencies": {
5050
"@biomejs/js-api": "3.0.0",
5151
"@biomejs/wasm-nodejs": "2.2.4",
52+
"@types/lodash": "^4.17.20",
5253
"@types/swagger-schema-official": "^2.0.25",
5354
"c12": "^3.3.0",
5455
"citty": "^0.1.6",
@@ -57,6 +58,7 @@
5758
"js-yaml": "^4.1.0",
5859
"lodash": "^4.17.21",
5960
"nanoid": "^5.1.5",
61+
"openapi-types": "^12.1.3",
6062
"swagger-schema-official": "2.0.0-bab6bed",
6163
"swagger2openapi": "^7.0.8",
6264
"typescript": "~5.9.2"
@@ -68,11 +70,9 @@
6870
"@tsconfig/node20": "20.1.6",
6971
"@tsconfig/strictest": "2.0.5",
7072
"@types/js-yaml": "4.0.9",
71-
"@types/lodash": "4.17.20",
7273
"@types/node": "24.5.2",
7374
"@types/swagger2openapi": "7.0.4",
7475
"axios": "1.12.2",
75-
"openapi-types": "12.1.3",
7676
"tsdown": "0.15.2",
7777
"typedoc": "0.28.13",
7878
"vitest": "3.2.4"

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ __metadata:
12031203
languageName: node
12041204
linkType: hard
12051205

1206-
"@types/lodash@npm:4.17.20":
1206+
"@types/lodash@npm:^4.17.20":
12071207
version: 4.17.20
12081208
resolution: "@types/lodash@npm:4.17.20"
12091209
checksum: 10c0/98cdd0faae22cbb8079a01a3bb65aa8f8c41143367486c1cbf5adc83f16c9272a2a5d2c1f541f61d0d73da543c16ee1d21cf2ef86cb93cd0cc0ac3bced6dd88f
@@ -2990,7 +2990,7 @@ __metadata:
29902990
languageName: node
29912991
linkType: hard
29922992

2993-
"openapi-types@npm:12.1.3, openapi-types@npm:^12.1.0":
2993+
"openapi-types@npm:^12.1.0, openapi-types@npm:^12.1.3":
29942994
version: 12.1.3
29952995
resolution: "openapi-types@npm:12.1.3"
29962996
checksum: 10c0/4ad4eb91ea834c237edfa6ab31394e87e00c888fc2918009763389c00d02342345195d6f302d61c3fd807f17723cd48df29b47b538b68375b3827b3758cd520f
@@ -3729,7 +3729,7 @@ __metadata:
37293729
"@tsconfig/node20": "npm:20.1.6"
37303730
"@tsconfig/strictest": "npm:2.0.5"
37313731
"@types/js-yaml": "npm:4.0.9"
3732-
"@types/lodash": "npm:4.17.20"
3732+
"@types/lodash": "npm:^4.17.20"
37333733
"@types/node": "npm:24.5.2"
37343734
"@types/swagger-schema-official": "npm:^2.0.25"
37353735
"@types/swagger2openapi": "npm:7.0.4"
@@ -3741,7 +3741,7 @@ __metadata:
37413741
js-yaml: "npm:^4.1.0"
37423742
lodash: "npm:^4.17.21"
37433743
nanoid: "npm:^5.1.5"
3744-
openapi-types: "npm:12.1.3"
3744+
openapi-types: "npm:^12.1.3"
37453745
swagger-schema-official: "npm:2.0.0-bab6bed"
37463746
swagger2openapi: "npm:^7.0.8"
37473747
tsdown: "npm:0.15.2"

0 commit comments

Comments
 (0)