Skip to content

Commit

Permalink
✨ add new schemas to build
Browse files Browse the repository at this point in the history
  • Loading branch information
w3cj committed Oct 14, 2024
1 parent c58a8a1 commit ad6afec
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export default defineBuildConfig({
"src/openapi/helpers/one-of",
"src/openapi/schemas/index",
"src/openapi/schemas/id-params",
"src/openapi/schemas/id-uuid-params",
"src/openapi/schemas/slug-params",
"src/openapi/schemas/create-message-object",
"src/openapi/schemas/create-error-schema",
],
Expand Down
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,16 @@
"import": "./dist/openapi/schemas/id-params.mjs",
"require": "./dist/openapi/schemas/id-params.cjs"
},
"./openapi/schemas/id-uuid-params": {
"types": "./dist/openapi/schemas/id-uuid-params.d.ts",
"import": "./dist/openapi/schemas/id-uuid-params.mjs",
"require": "./dist/openapi/schemas/id-uuid-params.cjs"
},
"./openapi/schemas/slug-params": {
"types": "./dist/openapi/schemas/slug-params.d.ts",
"import": "./dist/openapi/schemas/slug-params.mjs",
"require": "./dist/openapi/schemas/slug-params.cjs"
},
"./openapi/schemas/create-message-object": {
"types": "./dist/openapi/schemas/create-message-object.d.ts",
"import": "./dist/openapi/schemas/create-message-object.mjs",
Expand Down
2 changes: 2 additions & 0 deletions src/openapi/schemas/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export { default as createErrorSchema } from "./create-error-schema";
export { default as createMessageObjectSchema } from "./create-message-object";
export { default as IdParamsSchema } from "./id-params";
export { default as IdUUIDParamsSchema } from "./id-uuid-params";
export { default as SlugParamsSchema } from "./slug-params";

0 comments on commit ad6afec

Please sign in to comment.