Former-commit-id: f244277faf7b1063c0e97b5993337124a932c488 [formerly 1aaad171de86a005bd80812954764d01869432f2] [formerly 03e93b07f89f7d6f38734e27bde9289be97b40dc [formerly 505a9cd11434a4520b40498616eb8b9f50f8d679]]
Former-commit-id: 3d51d379fbbf6d0c82853c1c4f2d7b8bee53fff8 [formerly 53a050ce669a0574c839cd04b16fbfd5213f42ec]
Former-commit-id: 078821a69e24008aeb212decbb487cdaa939b7d2
This commit is contained in:
melvinchia3636
2025-09-23 12:32:26 +08:00
4 changed files with 6 additions and 7 deletions

View File

@@ -276,6 +276,7 @@
"react-toastify": "^11.0.5",
"react-tooltip": "^5.28.1",
"react-virtualized": "^9.22.6",
"remark-gfm": "^4.0.0",
"rrule": "^2.8.1",
"shared": "workspace:*",
"socket.io-client": "^4.8.1",

View File

@@ -75,6 +75,7 @@
"react-toastify": "^11.0.5",
"react-tooltip": "^5.28.1",
"react-virtualized": "^9.22.6",
"remark-gfm": "^4.0.0",
"rrule": "^2.8.1",
"shared": "workspace:*",
"socket.io-client": "^4.8.1",

View File

@@ -17,7 +17,7 @@
"dev": "tsx watch --env-file=../env/.env.local ./src/index.ts",
"types": "bun run tsc -b --noEmit",
"build": "bun build ./src/index.ts --target bun --minify --production --outfile=./dist/server.js",
"start": "NODE_ENV=production bun --env-file=../env/.env.local ./dist/server.js",
"start": "NODE_ENV=production bun --env-file=../env/.env.local ./src/index.ts",
"lint": "eslint ./src --fix && prettier --write ./src",
"test": "jest",
"schema:generate": "bun ./scripts/generateSchema.ts"
@@ -122,4 +122,4 @@
"tsx": "^4.19.1",
"typescript-eslint": "^8.37.0"
}
}
}

View File

@@ -8,11 +8,8 @@ import { z } from 'zod/v4'
import { ALLOWED_LANG, ALLOWED_NAMESPACE } from '../constants/locales'
export const allApps = fs
.globSync(['../client/src/apps/*/*', '../apps/*'], {
withFileTypes: true
})
.filter(e => fs.existsSync(`${e.parentPath}/${e.name}/locales`))
.map(e => `${e.parentPath}/${e.name}`)
.globSync(['../client/src/apps/*/*', '../apps/*'])
.filter(e => fs.existsSync(`${e}/locales`))
const getLocale = forgeController
.query()