Skip to content

Commit

Permalink
enable incremental typescript builds (#1671)
Browse files Browse the repository at this point in the history
  • Loading branch information
mad-gooze committed Sep 11, 2021
1 parent 4172b5b commit 3a884db
Show file tree
Hide file tree
Showing 28 changed files with 83 additions and 18 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -72,4 +72,7 @@ typings/
# Do not check sensitive files.
.coveralls.yml

# typescript incremental builds cache
.tsbuildinfo

# cspell:ignore pids jscoverage wscript jspm dotenv eslintcache
4 changes: 3 additions & 1 deletion packages/cspell-bundled-dicts/tsconfig.json
Expand Up @@ -60,6 +60,8 @@
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
/* Advanced Options */
"skipLibCheck": true, /* Skip type checking of declaration files. */
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,
"incremental": true,
"tsBuildInfoFile": "./.tsbuildinfo"
}
}
4 changes: 3 additions & 1 deletion packages/cspell-dynamic-loader/tsconfig.json
Expand Up @@ -19,7 +19,9 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "dist",
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"incremental": true,
"tsBuildInfoFile": "./.tsbuildinfo"
},
"include": [
"src/**/*.ts",
Expand Down
3 changes: 3 additions & 0 deletions packages/cspell-glob/.npmignore
Expand Up @@ -22,3 +22,6 @@
tsconfig.json
jest.config.js
*.log

# typescript incremental builds cache
.tsbuildinfo
4 changes: 3 additions & 1 deletion packages/cspell-glob/tsconfig.json
Expand Up @@ -13,7 +13,9 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "dist",
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"incremental": true,
"tsBuildInfoFile": "./.tsbuildinfo"
},
"include": [
"src/**/*.ts",
Expand Down
3 changes: 3 additions & 0 deletions packages/cspell-io/.npmignore
Expand Up @@ -22,3 +22,6 @@
tsconfig.json
jest.config.js
*.log

# typescript incremental builds cache
.tsbuildinfo
4 changes: 3 additions & 1 deletion packages/cspell-io/tsconfig.json
Expand Up @@ -16,7 +16,9 @@
"forceConsistentCasingInFileNames": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "dist"
"outDir": "dist",
"incremental": true,
"tsBuildInfoFile": "./.tsbuildinfo"
},
"include": [
"src"
Expand Down
3 changes: 3 additions & 0 deletions packages/cspell-lib/.npmignore
Expand Up @@ -4,3 +4,6 @@ __mocks__
**/*.test.*
**/*.spec.*
**/*.map

# typescript incremental builds cache
.tsbuildinfo
4 changes: 3 additions & 1 deletion packages/cspell-lib/tsconfig.json
Expand Up @@ -14,7 +14,9 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "dist",
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"incremental": true,
"tsBuildInfoFile": "./.tsbuildinfo"
},
"include": [
"src/**/*.ts",
Expand Down
3 changes: 3 additions & 0 deletions packages/cspell-tools/.npmignore
Expand Up @@ -22,3 +22,6 @@
tsconfig.json
jest.config.js
*.log

# typescript incremental builds cache
.tsbuildinfo
4 changes: 3 additions & 1 deletion packages/cspell-tools/tsconfig.json
Expand Up @@ -11,7 +11,9 @@
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"outDir": "dist"
"outDir": "dist",
"incremental": true,
"tsBuildInfoFile": "./.tsbuildinfo"
},
"include": [
"src"
Expand Down
3 changes: 3 additions & 0 deletions packages/cspell-trie-lib/.npmignore
Expand Up @@ -22,3 +22,6 @@
tsconfig.json
jest.config.js
*.log

# typescript incremental builds cache
.tsbuildinfo
4 changes: 3 additions & 1 deletion packages/cspell-trie-lib/tsconfig.json
Expand Up @@ -13,7 +13,9 @@
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "dist"
"outDir": "dist",
"incremental": true,
"tsBuildInfoFile": "./.tsbuildinfo"
},
"include": [
"src"
Expand Down
3 changes: 3 additions & 0 deletions packages/cspell-trie/.npmignore
Expand Up @@ -22,3 +22,6 @@
tsconfig.json
jest.config.js
*.log

# typescript incremental builds cache
.tsbuildinfo
4 changes: 3 additions & 1 deletion packages/cspell-trie/tsconfig.json
Expand Up @@ -13,7 +13,9 @@
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "dist"
"outDir": "dist",
"incremental": true,
"tsBuildInfoFile": "./.tsbuildinfo"
},
"include": [
"src"
Expand Down
3 changes: 3 additions & 0 deletions packages/cspell-trie2-lib/.npmignore
Expand Up @@ -22,3 +22,6 @@
tsconfig.json
jest.config.js
*.log

# typescript incremental builds cache
.tsbuildinfo
4 changes: 3 additions & 1 deletion packages/cspell-trie2-lib/tsconfig.json
Expand Up @@ -13,7 +13,9 @@
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "dist"
"outDir": "dist",
"incremental": true,
"tsBuildInfoFile": "./.tsbuildinfo"
},
"include": [
"src"
Expand Down
4 changes: 3 additions & 1 deletion packages/cspell-types/tsconfig.json
Expand Up @@ -19,7 +19,9 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "dist",
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"incremental": true,
"tsBuildInfoFile": "./.tsbuildinfo"
},
"include": [
"src/**/*.ts",
Expand Down
3 changes: 3 additions & 0 deletions packages/cspell/.npmignore
Expand Up @@ -4,3 +4,6 @@ __mocks__
**/*.test.*
**/*.spec.*
**/*.map

# typescript incremental builds cache
.tsbuildinfo
4 changes: 3 additions & 1 deletion packages/cspell/tsconfig.json
Expand Up @@ -19,7 +19,9 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "dist",
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"incremental": true,
"tsBuildInfoFile": "./.tsbuildinfo"
},
"include": [
"src/**/*.ts",
Expand Down
2 changes: 2 additions & 0 deletions packages/hunspell-reader/.npmignore
Expand Up @@ -12,3 +12,5 @@ tsconfig.json
tslint.json
typings.json

# typescript incremental builds cache
.tsbuildinfo
4 changes: 3 additions & 1 deletion packages/hunspell-reader/tsconfig.json
Expand Up @@ -15,7 +15,9 @@
"preserveConstEnums": false,
"outDir": "dist",
"lib": ["dom", "dom.iterable", "es2015"],
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"incremental": true,
"tsBuildInfoFile": "./.tsbuildinfo"
},
"exclude": ["node_modules", "dist"]
}
4 changes: 3 additions & 1 deletion test-packages/test-cspell-glob/tsconfig.json
Expand Up @@ -16,7 +16,9 @@
"forceConsistentCasingInFileNames": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "dist"
"outDir": "dist",
"incremental": true,
"tsBuildInfoFile": "./.tsbuildinfo"
},
"include": [
"src"
Expand Down
4 changes: 3 additions & 1 deletion test-packages/test-cspell-io/tsconfig.json
Expand Up @@ -16,7 +16,9 @@
"forceConsistentCasingInFileNames": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "dist"
"outDir": "dist",
"incremental": true,
"tsBuildInfoFile": "./.tsbuildinfo"
},
"include": [
"src"
Expand Down
4 changes: 3 additions & 1 deletion test-packages/test-cspell-lib-webpack/tsconfig.json
Expand Up @@ -16,7 +16,9 @@
"forceConsistentCasingInFileNames": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "dist"
"outDir": "dist",
"incremental": true,
"tsBuildInfoFile": "./.tsbuildinfo"
},
"include": [
"src"
Expand Down
4 changes: 3 additions & 1 deletion test-packages/test-cspell-lib/tsconfig.json
Expand Up @@ -16,7 +16,9 @@
"forceConsistentCasingInFileNames": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "dist"
"outDir": "dist",
"incremental": true,
"tsBuildInfoFile": "./.tsbuildinfo"
},
"include": [
"src"
Expand Down
4 changes: 3 additions & 1 deletion test-packages/test-cspell-tools/tsconfig.json
Expand Up @@ -16,7 +16,9 @@
"forceConsistentCasingInFileNames": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "dist"
"outDir": "dist",
"incremental": true,
"tsBuildInfoFile": "./.tsbuildinfo"
},
"include": [
"src"
Expand Down
4 changes: 3 additions & 1 deletion test-packages/test-cspell/tsconfig.json
Expand Up @@ -16,7 +16,9 @@
"forceConsistentCasingInFileNames": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "dist"
"outDir": "dist",
"incremental": true,
"tsBuildInfoFile": "./.tsbuildinfo"
},
"include": [
"src"
Expand Down

0 comments on commit 3a884db

Please sign in to comment.