diff --git a/package.json b/package.json index 6306013..8a90ff4 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "dev": "npx ts-node -r tsconfig-paths/register ./src/app.ts", "build": "sh ./scripts/build.sh", "build:client": "node esbuild.mjs", - "build:server": "npx tsc -p ./tsconfig.json", + "build:server": "npx tsc -p ./tsconfig.json && npx tsc-alias -p ./tsconfig.json", "build:tailwind": "npx @tailwindcss/cli -i ./src/client/public/css/main.css -o ./src/client/public/css/tailwind.css", "db:migrate": "npx prisma migrate dev --name", "db:seed": "npx prisma db seed" diff --git a/tsconfig.json b/tsconfig.json index 1018977..af5d477 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,13 +2,9 @@ "compilerOptions": { "target": "ES6", "module": "CommonJS", - "rootDir": "./", + "rootDir": "./src", "baseUrl": "./", "outDir": "./dist", - "lib": [ - "ES6", - "DOM" - ], "paths": { "@server/*": ["./src/server/*"], "@bot/*": ["./src/bot/*"] @@ -23,7 +19,8 @@ "sourceMap": false, "strict": true, "skipLibCheck": true, - "esModuleInterop": true + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true }, "include": [ "./src/*",