diff --git a/web/gen/index.ts b/web/gen/index.ts deleted file mode 100644 index 7b519fe51c..0000000000 --- a/web/gen/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -// This file is auto-generated by @hey-api/openapi-ts - -export type { AddPetData, AddPetError, AddPetErrors, AddPetRequest, AddPetResponse, AddPetResponses, Address, ApiResponse, Cat, Category, CatWritable, ClientOptions, CreateUserData, CreateUserResponse, CreateUserResponses, CreateUsersWithListInputData, CreateUsersWithListInputResponse, CreateUsersWithListInputResponses, Customer, DeleteOrderData, DeleteOrderErrors, DeletePetData, DeletePetErrors, DeletePetResponse, DeletePetResponses, DeleteUserData, DeleteUserErrors, Dog, DogWritable, FindPetsByStatusData, FindPetsByStatusErrors, FindPetsByStatusResponse, FindPetsByStatusResponses, FindPetsByTagsData, FindPetsByTagsErrors, FindPetsByTagsResponse, FindPetsByTagsResponses, FullAddress, GetInventoryData, GetInventoryResponse, GetInventoryResponses, GetOrderByIdData, GetOrderByIdErrors, GetOrderByIdResponse, GetOrderByIdResponses, GetPetByIdData, GetPetByIdErrors, GetPetByIdResponse, GetPetByIdResponses, GetUserByNameData, GetUserByNameErrors, GetUserByNameResponse, GetUserByNameResponses, HappyCustomer, LoginUserData, LoginUserErrors, LoginUserResponse, LoginUserResponses, LogoutUserData, LogoutUserResponses, OpenapiCategory, Order, Page, PageSize, Pet, Pet2, PetWritable, PlaceOrderData, PlaceOrderErrors, PlaceOrderPatchData, PlaceOrderPatchErrors, PlaceOrderPatchResponse, PlaceOrderPatchResponses, PlaceOrderResponse, PlaceOrderResponses, Tag, UnhappyCustomer, UpdatePetData, UpdatePetErrors, UpdatePetResponse, UpdatePetResponses, UpdatePetWithFormData, UpdatePetWithFormErrors, UpdateUserData, UpdateUserResponses, UploadFileData, UploadFileResponse, UploadFileResponses, User, UserArray } from './types.gen' diff --git a/web/openapi-ts.config.ts b/web/openapi-ts.config.ts index 945d7f4915..01e7dd45b3 100644 --- a/web/openapi-ts.config.ts +++ b/web/openapi-ts.config.ts @@ -4,7 +4,10 @@ import { defineConfig as defineOrpcConfig } from './plugins/hey-api-orpc/config' export default defineConfig({ input: './open-api/petStore.yaml', - output: './gen', + output: { + indexFile: false, + path: './gen', + }, plugins: [ '@hey-api/typescript', { diff --git a/web/package.json b/web/package.json index 7b9861e5cb..6c781d70bd 100644 --- a/web/package.json +++ b/web/package.json @@ -52,7 +52,7 @@ "preinstall": "npx only-allow pnpm", "analyze": "ANALYZE=true pnpm build", "knip": "knip", - "openapi-ts": "openapi-ts" + "openapi-ts": "openapi-ts && pnpm lint:fix gen" }, "dependencies": { "@amplitude/analytics-browser": "2.33.1",