enable TypeScript incremental mode to speed up IDEs

This commit is contained in:
Hazelnoot 2025-05-23 19:44:07 -04:00
parent 6d4860bb78
commit 5af5414fdf
17 changed files with 18 additions and 2 deletions

View file

@ -2,7 +2,8 @@
"compilerOptions": { "compilerOptions": {
"lib": ["dom", "es5"], "lib": ["dom", "es5"],
"target": "es5", "target": "es5",
"types": ["cypress", "node"] "types": ["cypress", "node"],
"incremental": true
}, },
"include": ["./**/*.ts"] "include": ["./**/*.ts"]
} }

View file

@ -3,7 +3,7 @@
/* Visit https://aka.ms/tsconfig to read more about this file */ /* Visit https://aka.ms/tsconfig to read more about this file */
/* Projects */ /* Projects */
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */

View file

@ -23,6 +23,7 @@
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"incremental": true,
"rootDir": "../src", "rootDir": "../src",
"baseUrl": "./", "baseUrl": "./",
"paths": { "paths": {

View file

@ -23,6 +23,7 @@
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"incremental": true,
"baseUrl": "./", "baseUrl": "./",
"paths": { "paths": {
"@/*": ["../src/*"] "@/*": ["../src/*"]

View file

@ -23,6 +23,7 @@
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"incremental": true,
"rootDir": "./src", "rootDir": "./src",
"baseUrl": "./", "baseUrl": "./",
"paths": { "paths": {

View file

@ -1,5 +1,6 @@
{ {
"compilerOptions": { "compilerOptions": {
"lib": ["esnext", "webworker"], "lib": ["esnext", "webworker"],
"incremental": true
} }
} }

View file

@ -23,6 +23,7 @@
"useDefineForClassFields": true, "useDefineForClassFields": true,
"verbatimModuleSyntax": true, "verbatimModuleSyntax": true,
"skipLibCheck": true, "skipLibCheck": true,
"incremental": true,
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"@/*": ["./src/*"], "@/*": ["./src/*"],

View file

@ -18,6 +18,7 @@
"esModuleInterop": true, "esModuleInterop": true,
"verbatimModuleSyntax": true, "verbatimModuleSyntax": true,
"skipLibCheck": true, "skipLibCheck": true,
"incremental": true,
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"@/*": ["./*"], "@/*": ["./*"],

View file

@ -18,6 +18,7 @@
"esModuleInterop": true, "esModuleInterop": true,
"skipLibCheck": true, "skipLibCheck": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"incremental": true,
"jsx": "react", "jsx": "react",
"jsxFactory": "h" "jsxFactory": "h"
}, },

View file

@ -1,5 +1,6 @@
{ {
"compilerOptions": { "compilerOptions": {
"lib": ["esnext", "webworker"], "lib": ["esnext", "webworker"],
"incremental": true
} }
} }

View file

@ -22,6 +22,7 @@
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"incremental": true,
"baseUrl": "./", "baseUrl": "./",
"paths": { "paths": {
"@/*": ["../src/*"] "@/*": ["../src/*"]

View file

@ -23,6 +23,7 @@
"useDefineForClassFields": true, "useDefineForClassFields": true,
"verbatimModuleSyntax": true, "verbatimModuleSyntax": true,
"skipLibCheck": true, "skipLibCheck": true,
"incremental": true,
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"@/*": ["./src/*"], "@/*": ["./src/*"],

View file

@ -16,6 +16,7 @@
"noImplicitReturns": true, "noImplicitReturns": true,
"esModuleInterop": true, "esModuleInterop": true,
"skipLibCheck": true, "skipLibCheck": true,
"incremental": true,
"typeRoots": [ "typeRoots": [
"./node_modules/@types" "./node_modules/@types"
], ],

View file

@ -8,6 +8,7 @@
"strictFunctionTypes": true, "strictFunctionTypes": true,
"strictNullChecks": true, "strictNullChecks": true,
"esModuleInterop": true, "esModuleInterop": true,
"incremental": true,
"lib": [ "lib": [
"esnext", "esnext",
] ]

View file

@ -17,6 +17,7 @@
"esModuleInterop": true, "esModuleInterop": true,
"exactOptionalPropertyTypes": true, "exactOptionalPropertyTypes": true,
"skipLibCheck": true, "skipLibCheck": true,
"incremental": true,
"typeRoots": [ "typeRoots": [
"./node_modules/@types" "./node_modules/@types"
], ],

View file

@ -16,6 +16,7 @@
"noImplicitReturns": true, "noImplicitReturns": true,
"esModuleInterop": true, "esModuleInterop": true,
"skipLibCheck": true, "skipLibCheck": true,
"incremental": true,
"typeRoots": [ "typeRoots": [
"./node_modules/@types" "./node_modules/@types"
], ],

View file

@ -20,6 +20,7 @@
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"skipLibCheck": true, "skipLibCheck": true,
"incremental": true,
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"@/*": ["./src/*"], "@/*": ["./src/*"],