Skip to content

Commit

Permalink
🩹 Fix @bgs/utils import
Browse files Browse the repository at this point in the history
  • Loading branch information
coyotte508 committed Sep 29, 2024
1 parent 0329afb commit 9baf94e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/api/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function listen(port = env.listen.port.api): Promise<Server> {
} else if (err instanceof ZodError) {
const formattedError = err.format();

const message = Object.entries(flatten(formattedError, { safe: true }) as Record<string, string[]>)
const message = Object.entries(flatten(formattedError) as Record<string, string[]>)
.filter(
(entry: [string, unknown]): entry is [string, string[]] =>
!!(entry[0].endsWith("._errors") && Array.isArray(entry[1]) && entry[1].length)
Expand Down
9 changes: 8 additions & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@
"dependencies": {
"lodash": "^4.17.21"
},
"main": "index.ts",
"main": "dist/index.js",
"types": "src/index.ts",
"files": [
"src",
"dist",
"tsconfig.json"
],
"type": "module",
"devDependencies": {
"@types/lodash": "^4.14.176",
"@types/luxon": "^2.0.4",
Expand Down

0 comments on commit 9baf94e

Please sign in to comment.