Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changeset/lazy-rules-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"swagger-typescript-api": patch
---

Move `@types/lodash` and `openapi-types` to dependencies

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.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"dependencies": {
"@biomejs/js-api": "3.0.0",
"@biomejs/wasm-nodejs": "2.2.4",
"@types/lodash": "^4.17.20",
"@types/swagger-schema-official": "^2.0.25",
"c12": "^3.3.0",
"citty": "^0.1.6",
Expand All @@ -57,6 +58,7 @@
"js-yaml": "^4.1.0",
"lodash": "^4.17.21",
"nanoid": "^5.1.5",
"openapi-types": "^12.1.3",
"swagger-schema-official": "2.0.0-bab6bed",
"swagger2openapi": "^7.0.8",
"typescript": "~5.9.2"
Expand All @@ -68,11 +70,9 @@
"@tsconfig/node20": "20.1.6",
"@tsconfig/strictest": "2.0.5",
"@types/js-yaml": "4.0.9",
"@types/lodash": "4.17.20",
"@types/node": "24.5.2",
"@types/swagger2openapi": "7.0.4",
"axios": "1.12.2",
"openapi-types": "12.1.3",
"tsdown": "0.15.2",
"typedoc": "0.28.13",
"vitest": "3.2.4"
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@ __metadata:
languageName: node
linkType: hard

"@types/lodash@npm:4.17.20":
"@types/lodash@npm:^4.17.20":
version: 4.17.20
resolution: "@types/lodash@npm:4.17.20"
checksum: 10c0/98cdd0faae22cbb8079a01a3bb65aa8f8c41143367486c1cbf5adc83f16c9272a2a5d2c1f541f61d0d73da543c16ee1d21cf2ef86cb93cd0cc0ac3bced6dd88f
Expand Down Expand Up @@ -2990,7 +2990,7 @@ __metadata:
languageName: node
linkType: hard

"openapi-types@npm:12.1.3, openapi-types@npm:^12.1.0":
"openapi-types@npm:^12.1.0, openapi-types@npm:^12.1.3":
version: 12.1.3
resolution: "openapi-types@npm:12.1.3"
checksum: 10c0/4ad4eb91ea834c237edfa6ab31394e87e00c888fc2918009763389c00d02342345195d6f302d61c3fd807f17723cd48df29b47b538b68375b3827b3758cd520f
Expand Down Expand Up @@ -3729,7 +3729,7 @@ __metadata:
"@tsconfig/node20": "npm:20.1.6"
"@tsconfig/strictest": "npm:2.0.5"
"@types/js-yaml": "npm:4.0.9"
"@types/lodash": "npm:4.17.20"
"@types/lodash": "npm:^4.17.20"
"@types/node": "npm:24.5.2"
"@types/swagger-schema-official": "npm:^2.0.25"
"@types/swagger2openapi": "npm:7.0.4"
Expand All @@ -3741,7 +3741,7 @@ __metadata:
js-yaml: "npm:^4.1.0"
lodash: "npm:^4.17.21"
nanoid: "npm:^5.1.5"
openapi-types: "npm:12.1.3"
openapi-types: "npm:^12.1.3"
swagger-schema-official: "npm:2.0.0-bab6bed"
swagger2openapi: "npm:^7.0.8"
tsdown: "npm:0.15.2"
Expand Down