Skip to content

Commit f4cb596

Browse files
committed
update tsconfig
1 parent b0808ac commit f4cb596

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

tsconfig.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
/* Modules */
2727
"module": "commonjs", /* Specify what module code is generated. */
28-
// "rootDir": "./", /* Specify the root folder within your source files. */
29-
// "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
28+
"rootDir": "src", /* Specify the root folder within your source files. */
29+
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
3030
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
3131
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
3232
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
@@ -45,9 +45,9 @@
4545
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
4646
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
4747
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
48-
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
48+
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
4949
// "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. */
50-
"outDir": "./lib", /* Specify an output folder for all emitted files. */
50+
"outDir": "dist", /* Specify an output folder for all emitted files. */
5151
// "removeComments": true, /* Disable emitting comments. */
5252
// "noEmit": true, /* Disable emitting files from a compilation. */
5353
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
@@ -76,7 +76,7 @@
7676
/* Type Checking */
7777
"strict": true, /* Enable all strict type-checking options. */
7878
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied `any` type.. */
79-
// "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */
79+
"strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */
8080
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
8181
// "strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */
8282
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
@@ -97,5 +97,7 @@
9797
/* Completeness */
9898
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
9999
"skipLibCheck": true /* Skip type checking all .d.ts files. */
100-
}
100+
},
101+
"include": ["src"],
102+
"exclude": ["node_modules", "dist"]
101103
}

0 commit comments

Comments
 (0)