-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtsconfig.json
43 lines (43 loc) · 1.38 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
"compilerOptions": {
"lib": [
"dom",
"dom.iterable",
"esnext"
], // Keeps the necessary DOM types
"allowJs": true, // Allows JavaScript files to be compiled
"skipLibCheck": true, // Skips type checking of declaration files
"strict": true, // Enables strict type checking options
"noEmit": true, // Prevents TypeScript from emitting compiled JavaScript files
"esModuleInterop": true, // Enables emit interoperability between CommonJS and ES modules
"module": "ESNext", // Use ESNext module syntax
"moduleResolution": "Node", // Resolves modules using Node's module resolution strategy
"resolveJsonModule": true, // Allows importing JSON files
"isolatedModules": true, // Ensures that each file can be transpiled independently
"jsx": "preserve", // Preserves JSX syntax in the output
"incremental": true, // Enables incremental compilation for faster builds
"paths": {
"@/*": [
"./*"
] // Alias configuration for absolute imports
},
"plugins": [
{
"name": "next"
}
],
"target": "ES2017"
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"app/**/*.ts" // Include your websocket server TypeScript file
,
"app/lib/websocketServer.ts"
],
"exclude": [
"node_modules" // Excludes node_modules from compilation
]
}