|
1 | 1 | {
|
2 | 2 | /* Visit https://aka.ms/tsconfig.json to read more about this file */
|
| 3 | + "$schema": "https://json.schemastore.org/tsconfig", |
3 | 4 | "compilerOptions": {
|
4 | 5 | "module": "commonjs",
|
5 | 6 | "target": "ES2021",
|
6 |
| - "outDir": "out", |
7 | 7 | "lib": ["ES2021"],
|
8 |
| - "sourceMap": true, |
| 8 | + "baseUrl": ".", // Base directory to resolve non-absolute module names. |
9 | 9 | "rootDir": "src",
|
| 10 | + "outDir": "out", |
10 | 11 |
|
11 | 12 | /* Strict Type-Checking Option */
|
12 | 13 | "strict": true /* enable all strict type-checking options */,
|
|
30 | 31 |
|
31 | 32 | /* Module Resolution Options */
|
32 | 33 | "moduleResolution": "node", // Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6).
|
33 |
| - "baseUrl": "./", // Base directory to resolve non-absolute module names. |
| 34 | + "resolveJsonModule": true, // Allows importing modules with a .json extension. |
34 | 35 | "paths": {
|
35 | 36 | // A series of entries which re-map imports to lookup locations relative to the 'baseUrl'.
|
36 | 37 | // "app/*": ["src/app/*"]
|
| 38 | + "src/*": ["src/*"] |
37 | 39 | },
|
38 | 40 | // "rootDirs": [], // List of root folders whose combined content represents the structure of the project at runtime.
|
39 | 41 | "typeRoots": [
|
|
46 | 48 | "esModuleInterop": true, // Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'.
|
47 | 49 | // "preserveSymlinks": true, // Do not resolve the real path of symlinks.
|
48 | 50 | // "allowUmdGlobalAccess": true, // Allow accessing UMD globals from modules.
|
49 |
| - "resolveJsonModule": true, // Allows importing modules with a .json extension. |
50 | 51 |
|
51 | 52 | /* Source Map Options */
|
| 53 | + "sourceMap": true, |
52 | 54 | // "sourceRoot": "", // Specify the location where debugger should locate TypeScript files instead of source locations.
|
53 | 55 | // "mapRoot": "", // Specify the location where debugger should locate map files instead of generated locations.
|
54 | 56 | // "inlineSourceMap": true, // Emit a single file with source maps instead of having a separate file.
|
|
0 commit comments