-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtsconfig.json
59 lines (52 loc) · 3.25 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"compilerOptions": {
/* Base Options */
"esModuleInterop": true, // Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports.
"skipLibCheck": true, // Skip type checking of declaration files.
"target": "ES2020", // Specify ECMAScript target version.
"allowSyntheticDefaultImports": true, // Allow default imports from modules with no default export.
"forceConsistentCasingInFileNames": true, // Disallow inconsistently-cased references to the same file.
"moduleDetection": "force", // Ensure that each file is treated as a module.
/* Strict Type-Checking Options */
"strict": true, // Enable all strict type-checking options.
"noImplicitAny": true, // Raise error on expressions and declarations with an implied 'any' type.
// "strictNullChecks": true, // Enable strict null checks.
// "strictFunctionTypes": true, // Enable strict checking of function types.
// "strictBindCallApply": true, // Enable strict 'bind', 'call', and 'apply' methods on functions.
// "strictPropertyInitialization": true, // Ensure non-undefined class properties are initialized in the constructor.
// "noImplicitThis": true, // Raise error on 'this' expressions with an implied 'any' type.
// "alwaysStrict": true, // Parse in strict mode and emit "use strict" for each source file.
/* Module Resolution Options */
"moduleResolution": "NodeNext", // Specify module resolution strategy: 'NodeNext' for native ESM support.
"module": "NodeNext", // Specify module code generation: 'NodeNext' for native ESM.
"resolveJsonModule": true, // Include modules imported with .json extension
"baseUrl": ".", // Base directory to resolve non-absolute module names.
"paths": {
"@modelcontextprotocol/sdk/*": ["node_modules/@modelcontextprotocol/sdk/*"]
},
// "rootDirs": [], // List of folders where TypeScript should look for source files that represent the structure of your project.
/* Source Map Options */
// "sourceMap": true, // Generates corresponding '.map' file.
// "outDir": "./dist", // Redirect output structure to the directory.
"rootDir": "src", // Specify the root directory of input files. Use to control the output directory structure with --outDir.
/* Emit Options */
"outDir": "dist", // Redirect output structure to the directory.
"declaration": true, // Generates corresponding '.d.ts' file.
"declarationMap": true, // Generates a sourcemap for each corresponding '.d.ts' file.
"sourceMap": true, // Generates corresponding '.map' file.
/* Library Options */
"lib": ["ESNext", "DOM"], // Specify library files to be included in the compilation.
/* Experimental Options */
// "experimentalDecorators": true, // Enables experimental support for ES7 decorators.
// "emitDecoratorMetadata": true, // Enables experimental support for emitting type metadata for decorators.
/* Advanced Options */
"allowJs": true // Allow javascript files to be compiled
},
"include": [
"src/**/*" // Specifies a list of files to be included in the compilation.
],
"exclude": [
"node_modules", // Specifies a list of files to be excluded from the compilation.
"**/*.test.ts" // Also exclude test files
]
}