Browse Source

incremental

Paul 5 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
 dist
2
 dist
3
 lib
3
 lib
4
 .cache
4
 .cache
5
+tsconfig.cjs.tsbuildinfo

+ 1
- 1
package.json View File

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

+ 1
- 0
tsconfig.json View File

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