fix: backend werkt op windows
This commit is contained in:
parent
8866bed1fe
commit
9626de951e
3 changed files with 2818 additions and 1059 deletions
|
@ -6,7 +6,7 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "NODE_ENV=production tsc --project tsconfig.json",
|
"build": "NODE_ENV=production tsc --project tsconfig.json",
|
||||||
"dev": "NODE_ENV=development tsx watch --env-file=.env.development.local src/app.ts",
|
"dev": "cross-env NODE_ENV=development tsx watch src/app.ts",
|
||||||
"start": "NODE_ENV=production node --env-file=.env dist/app.js",
|
"start": "NODE_ENV=production node --env-file=.env dist/app.js",
|
||||||
"format": "prettier --write src/",
|
"format": "prettier --write src/",
|
||||||
"format-check": "prettier --check src/",
|
"format-check": "prettier --check src/",
|
||||||
|
@ -22,6 +22,8 @@
|
||||||
"@types/js-yaml": "^4.0.9",
|
"@types/js-yaml": "^4.0.9",
|
||||||
"axios": "^1.8.2",
|
"axios": "^1.8.2",
|
||||||
"cors": "^2.8.5",
|
"cors": "^2.8.5",
|
||||||
|
"cross": "^1.0.0",
|
||||||
|
"cross-env": "^7.0.3",
|
||||||
"dotenv": "^16.4.7",
|
"dotenv": "^16.4.7",
|
||||||
"express": "^5.0.1",
|
"express": "^5.0.1",
|
||||||
"express-jwt": "^8.5.1",
|
"express-jwt": "^8.5.1",
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import express, { Express, Response } from 'express';
|
import express, { Express, Response } from 'express';
|
||||||
import { initORM } from './orm.js';
|
import { initORM } from './orm.js';
|
||||||
|
import "dotenv/config";
|
||||||
|
|
||||||
import themeRoutes from './routes/themes.js';
|
import themeRoutes from './routes/themes.js';
|
||||||
import learningPathRoutes from './routes/learning-paths.js';
|
import learningPathRoutes from './routes/learning-paths.js';
|
||||||
|
|
3872
package-lock.json
generated
3872
package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue