Skip to content

Commit 170e118

Browse files
committed
refactor(validation): remove mongoose dependency and update import paths
- Removed the mongoose dependency from the validation package to streamline dependencies. - Updated import statements in SongSearchQuery.dto.ts to reference the correct path without the file extension, enhancing consistency and maintainability.
1 parent ac67d3b commit 170e118

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

bun.lock

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/validation/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
},
2828
"dependencies": {
2929
"ms": "^2.1.3",
30-
"mongoose": "^9.0.1",
3130
"zod": "^4.1.13",
3231
"zod-validation-error": "^5.0.0",
3332
"@nbw/config": "workspace:*"
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { z } from 'zod';
22

3-
import { pageQueryDTOSchema } from '@nbw/validation/src';
3+
import { pageQueryDTOSchema } from '../common/PageQuery.dto.js';
44

5-
pageQueryDTOSchema.extend({
5+
export const songSearchQueryDTOSchema = pageQueryDTOSchema.extend({
66
q: z.string().optional().default(''),
77
});
8+
9+
export type SongSearchQueryInput = z.input<typeof songSearchQueryDTOSchema>;

0 commit comments

Comments
 (0)