From f3a42251c9ee481c60b5157f320f663b7cf30923 Mon Sep 17 00:00:00 2001 From: Sora Morimoto Date: Fri, 19 Sep 2025 06:30:00 +0900 Subject: [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. Signed-off-by: Sora Morimoto --- .changeset/lazy-rules-guess.md | 10 ++++++++++ package.json | 4 ++-- yarn.lock | 8 ++++---- 3 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 .changeset/lazy-rules-guess.md diff --git a/.changeset/lazy-rules-guess.md b/.changeset/lazy-rules-guess.md new file mode 100644 index 000000000..c5ce3a703 --- /dev/null +++ b/.changeset/lazy-rules-guess.md @@ -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. diff --git a/package.json b/package.json index d60dd297e..56a3f7bf4 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" @@ -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" diff --git a/yarn.lock b/yarn.lock index 7269cd89b..52e11ffd4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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 @@ -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 @@ -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" @@ -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"