Browse Source

incremental

Paul 4 years ago
parent
commit
b60f31053b
3 changed files with 3 additions and 1 deletions
  1. 1
    0
      .gitignore
  2. 1
    1
      package.json
  3. 1
    0
      tsconfig.json

+ 1
- 0
.gitignore View File

@@ -2,3 +2,4 @@ node_modules
2 2
 dist
3 3
 lib
4 4
 .cache
5
+tsconfig.cjs.tsbuildinfo

+ 1
- 1
package.json View File

@@ -5,7 +5,7 @@
5 5
   "main": "dist/index.js",
6 6
   "types": "dist/types/index.d.ts",
7 7
   "scripts": {
8
-    "type-check": "tsc --noEmit",
8
+    "type-check": "tsc --noEmit --project ./tsconfig.cjs.json",
9 9
     "type-check:watch": "npm run type-check -- --watch",
10 10
     "start": "webpack-dev-server --config scripts/webpack/webpack.config.dev.js",
11 11
     "test": "jest --config=scripts/jest/jest.config.js",

+ 1
- 0
tsconfig.json View File

@@ -11,6 +11,7 @@
11 11
     "esModuleInterop": true,
12 12
     // Enable strictest settings like strictNullChecks & noImplicitAny.
13 13
     "strictNullChecks": true,
14
+    "incremental": true,
14 15
     "alwaysStrict": true,
15 16
     "sourceMap": true,
16 17
     "rootDirs": ["src", "example"],