Skip to content

Commit 5fd3ab2

Browse files
committed
feat: configure tsconfig
1 parent cc8a07e commit 5fd3ab2

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

tsconfig.json

+13-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
1212

1313
/* Language and Environment */
14-
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
14+
"target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
1515
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
1616
// "jsx": "preserve", /* Specify what JSX code is generated. */
1717
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
@@ -26,7 +26,7 @@
2626

2727
/* Modules */
2828
"module": "commonjs", /* Specify what module code is generated. */
29-
// "rootDir": "./", /* Specify the root folder within your source files. */
29+
"rootDir": "./lib", /* Specify the root folder within your source files. */
3030
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
3131
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
3232
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
@@ -46,19 +46,19 @@
4646
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
4747

4848
/* JavaScript Support */
49-
// "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
49+
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
5050
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
5151
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
5252

5353
/* Emit */
5454
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
5555
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
5656
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
57-
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
57+
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
5858
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
5959
// "noEmit": true, /* Disable emitting files from a compilation. */
6060
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
61-
// "outDir": "./", /* Specify an output folder for all emitted files. */
61+
"outDir": "./dist", /* Specify an output folder for all emitted files. */
6262
// "removeComments": true, /* Disable emitting comments. */
6363
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
6464
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
@@ -107,5 +107,12 @@
107107
/* Completeness */
108108
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
109109
"skipLibCheck": true /* Skip type checking all .d.ts files. */
110-
}
110+
},
111+
"exclude": [
112+
"node_modules",
113+
"**/*.unit*",
114+
"**/*.spec*",
115+
"coverage/**",
116+
"dist",
117+
]
111118
}

0 commit comments

Comments
 (0)