|
3 | 3 | /* Visit https://aka.ms/tsconfig.json to read more about this file */ |
4 | 4 |
|
5 | 5 | /* Basic Options */ |
6 | | - // "incremental": true, /* Enable incremental compilation */ |
7 | | - "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */ |
| 6 | + "incremental": true, /* Enable incremental compilation */ |
| 7 | + "target": "es2015", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */ |
8 | 8 | "module": "ESNext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ |
9 | 9 | "lib": ["dom", "esnext"], /* Specify library files to be included in the compilation. */ |
10 | 10 | // "allowJs": true, /* Allow javascript files to be compiled. */ |
11 | 11 | // "checkJs": true, /* Report errors in .js files. */ |
12 | 12 | // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ |
13 | 13 | "declaration": true, /* Generates corresponding '.d.ts' file. */ |
14 | | - // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ |
15 | | - // "sourceMap": true, /* Generates corresponding '.map' file. */ |
| 14 | + "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ |
| 15 | + "sourceMap": true, /* Generates corresponding '.map' file. */ |
16 | 16 | // "outFile": "./", /* Concatenate and emit output to single file. */ |
17 | | - "outDir": "./dist-test", /* Redirect output structure to the directory. */ |
| 17 | + "outDir": "./dist", /* Redirect output structure to the directory. */ |
18 | 18 | // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ |
19 | 19 | // "composite": true, /* Enable project compilation */ |
20 | 20 | // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */ |
|
42 | 42 |
|
43 | 43 | /* Module Resolution Options */ |
44 | 44 | "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ |
45 | | - "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ |
46 | | - "paths": { |
47 | | - "*" : ["src/*", "node_modules/*", "test/*", "examples/*"] |
48 | | - /* "target/node/*", */ |
49 | | - }, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ |
50 | | - //"rootDirs": ["src", "test"], /* List of root folders whose combined content represents the structure of the project at runtime. */ |
| 45 | + "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ |
| 46 | + "paths": { |
| 47 | + "*": ["./src/*"] |
| 48 | + }, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ |
| 49 | + //"rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ |
51 | 50 | // "typeRoots": [ "./types", "./node_modules/@types" ], /* List of folders to include type definitions from. */ |
52 | 51 | // "types": [], /* Type declaration files to be included in compilation. */ |
53 | 52 | // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ |
|
67 | 66 |
|
68 | 67 | /* Advanced Options */ |
69 | 68 | "skipLibCheck": true, /* Skip type checking of declaration files. */ |
70 | | - "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ |
| 69 | + "forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */ |
| 70 | + "plugins": [ |
| 71 | + { "transform": "@zerollup/ts-transform-paths" } |
| 72 | + ] |
71 | 73 | }, |
72 | | - "files": [ "examples/chat/index.ts" ], |
73 | | - //"files": [ "src/index.ts" ], |
74 | | - //"include": [ "./types/*" ] |
75 | | - "include": [ "./types/*", "./src/**/*", "./test/**/*", "./examples/**/*" ] |
76 | | - /* "./target/node/*", */ |
| 74 | + "files": [ "src/index.ts" ], |
| 75 | + "include": [ "./types/*" ] |
77 | 76 | } |
0 commit comments