feat: добавить split-режим генерации REST-клиента

- добавлен режим генерации single, split и both
- добавлены отдельные operation-файлы и createApiClient
- удалена генерация SWR-хуков и зависимости React/SWR
- обновлены CLI, шаблоны, примеры, документация и тесты
- версия пакета повышена до 3.0.0
This commit is contained in:
2026-06-30 07:59:52 +03:00
parent 961c7f0ec1
commit bf340b3dbe
21 changed files with 1029 additions and 732 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@gromlab/api-codegen",
"version": "1.0.7",
"version": "3.0.0",
"description": "CLI tool to generate TypeScript API client from OpenAPI specification",
"type": "module",
"bin": {
@@ -10,6 +10,9 @@
"dist",
"package.json"
],
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=18"
},
@@ -37,12 +40,9 @@
"@types/ejs": "^3.1.5",
"@types/js-yaml": "^4.0.9",
"@types/node": "^22.10.2",
"@types/react": "^18.3.0",
"@types/tmp": "^0.2.6",
"execa": "^8.0.0",
"msw": "^2.0.0",
"react": "^18.3.0",
"swr": "^2.3.0",
"tmp": "^0.2.1"
},
"peerDependencies": {