feat: upgrade to node 22

This commit is contained in:
Nevo David 2025-10-16 23:59:01 +07:00
parent e15180f026
commit 0eb6f807f2
6 changed files with 2641 additions and 2604 deletions

View File

@ -5,7 +5,7 @@
"scripts": {
"dev": "dotenv -e ../../.env -- nest start --watch --entryFile=./apps/backend/src/main",
"build": "cross-env NODE_ENV=production nest build",
"start": "dotenv -e ../../.env -- node ./dist/apps/backend/src/main.js",
"start": "dotenv -e ../../.env -- node --experimental-require-module ./dist/apps/backend/src/main.js",
"pm2": "pm2 start pnpm --name backend -- start"
},
"keywords": [],

View File

@ -37,7 +37,7 @@ export class CopilotController {
private _mastraService: MastraService
) {}
@Post('/chat')
chat(@Req() req: Request, @Res() res: Response) {
chatAgent(@Req() req: Request, @Res() res: Response) {
if (
process.env.OPENAI_API_KEY === undefined ||
process.env.OPENAI_API_KEY === ''

View File

@ -5,7 +5,7 @@
"scripts": {
"dev": "dotenv -e ../../.env -- nest start --watch --entryFile=./apps/cron/src/main",
"build": "cross-env NODE_ENV=production nest build",
"start": "dotenv -e ../../.env -- node ./dist/apps/cron/src/main.js",
"start": "dotenv -e ../../.env -- node --experimental-require-module ./dist/apps/cron/src/main.js",
"pm2": "pm2 start pnpm --name cron -- start"
},
"keywords": [],

View File

@ -5,7 +5,7 @@
"scripts": {
"dev": "dotenv -e ../../.env -- nest start --watch --entryFile=./apps/workers/src/main",
"build": "cross-env NODE_ENV=production nest build",
"start": "dotenv -e ../../.env -- node ./dist/apps/workers/src/main.js",
"start": "dotenv -e ../../.env -- node --experimental-require-module ./dist/apps/workers/src/main.js",
"pm2": "pm2 start pnpm --name workers -- start"
},
"keywords": [],

View File

@ -7,7 +7,7 @@
"keywords": [],
"author": "",
"engines": {
"node": ">=20.0.0 <21.0.0"
"node": ">=22.0.0 <23.0.0"
},
"packageManager": "pnpm@10.6.1",
"scripts": {
@ -306,10 +306,6 @@
"pnpm": {
"onlyBuiltDependencies": [
"bcrypt"
],
"overrides": {
"exit-hook": "2.2.1",
"@sindresorhus/slugify": "1.1.0"
}
]
}
}

File diff suppressed because it is too large Load Diff