Skip to content

Commit

Permalink
feat: change to new typeschema package
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcdo29 committed Aug 21, 2024
1 parent 093f3f1 commit ce8a17b
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 96 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
"private": true,
"devDependencies": {
"@changesets/cli": "^2.23.2",
"@decs/typeschema": "^0.11.7",
"@nestjs/common": "10.0.3",
"@nestjs/core": "10.0.3",
"@nestjs/platform-express": "10.0.3",
"@nestjs/platform-fastify": "10.0.3",
"@nestjs/schematics": "10.0.1",
"@nestjs/testing": "10.0.3",
"@nrwl/tao": "19.6.1",
"@nx/eslint": "19.6.1",
"@nx/eslint-plugin": "19.6.1",
"@nx/jest": "19.6.1",
"@nx/js": "19.6.1",
Expand All @@ -47,6 +47,8 @@
"@types/jest": "29.5.12",
"@types/node": "18.19.9",
"@types/supertest": "^2.0.12",
"@typeschema/core": "^0.13.2",
"@typeschema/main": "^0.13.10",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"ajv": "^8.12.0",
Expand Down Expand Up @@ -76,7 +78,6 @@
"typescript": "5.5.4",
"valibot": "^0.15.0",
"yup": "^1.2.0",
"zod": "^3.22.2",
"@nx/eslint": "19.6.1"
"zod": "^3.22.2"
}
}
3 changes: 2 additions & 1 deletion packages/typeschema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
],
"main": "src/index.js",
"dependencies": {
"@decs/typeschema": "^0.11.7"
"@typeschema/core": "^0.13.2",
"@typeschema/main": "^0.13.10"
},
"peerDependencies": {
"@nestjs/common": "^10.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/typeschema/src/lib/typeschema.dto.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Schema, Infer } from '@decs/typeschema';
import { Schema, Infer } from '@typeschema/main';

export const TypeschemaDto = <TSchema extends Schema>(
schema: TSchema
Expand Down
3 changes: 2 additions & 1 deletion packages/typeschema/src/lib/typeschema.pipe.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ValidationIssue, validate } from '@decs/typeschema';
import { validate } from '@typeschema/main';
import type { ValidationIssue } from '@typeschema/core';
import {
ArgumentMetadata,
BadRequestException,
Expand Down
184 changes: 94 additions & 90 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ce8a17b

Please sign in to comment.