update for tsc build

This commit is contained in:
2025-11-30 13:57:42 -05:00
parent 1fa6bdd98b
commit 0c50b609ad
3 changed files with 38 additions and 1 deletions

View File

@@ -1,10 +1,12 @@
{
"lockfileVersion": 1,
"configVersion": 0,
"workspaces": {
"": {
"name": "albert-jeffers-studios-server",
"dependencies": {
"@prisma/client": "^6.18.0",
"@types/bcrypt": "6.0.0",
"@types/cookie-parser": "^1.4.9",
"bcrypt": "^6.0.0",
"cookie-parser": "^1.4.7",
@@ -66,6 +68,8 @@
"@standard-schema/spec": ["@standard-schema/spec@1.0.0", "", {}, "sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA=="],
"@types/bcrypt": ["@types/bcrypt@6.0.0", "", { "dependencies": { "@types/node": "*" } }, "sha512-/oJGukuH3D2+D+3H4JWLaAsJ/ji86dhRidzZ/Od7H/i8g+aCmvkeCc6Ni/f9uxGLSQVCRZkX2/lqEFG2BvWtlQ=="],
"@types/body-parser": ["@types/body-parser@1.19.6", "", { "dependencies": { "@types/connect": "*", "@types/node": "*" } }, "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g=="],
"@types/connect": ["@types/connect@3.4.38", "", { "dependencies": { "@types/node": "*" } }, "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug=="],

View File

@@ -8,7 +8,7 @@
"format": "prettier --write .",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"build": "tsc --outDir=dist"
"build": "tsc"
},
"devDependencies": {
"@types/express": "^5.0.3",
@@ -20,6 +20,7 @@
},
"dependencies": {
"@prisma/client": "^6.18.0",
"@types/bcrypt": "6.0.0",
"@types/cookie-parser": "^1.4.9",
"bcrypt": "^6.0.0",
"cookie-parser": "^1.4.7",

32
server/tsconfig.json Normal file
View File

@@ -0,0 +1,32 @@
{
"compilerOptions": {
// Environment setup & latest features
"lib": ["ESNext"],
"target": "ESNext",
"module": "Preserve",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,
// Bundler mode
"moduleResolution": "bundler",
"verbatimModuleSyntax": true,
"noEmit": false,
"outDir": "./dist",
"rootDir": "./src",
// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}