Skip to content

Commit 468af09

Browse files
committed
feat(build): enable incremental compilation
1 parent 6733610 commit 468af09

File tree

28 files changed

+88
-27
lines changed

28 files changed

+88
-27
lines changed

benchmark/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

examples/express-composition/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

examples/greeter-extension/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

examples/hello-world/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

examples/lb3-application/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

examples/log-extension/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

examples/soap-calculator/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

examples/todo-list/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

examples/todo/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

packages/authentication/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

packages/boot/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

packages/booter-lb3app/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

packages/build/config/tsconfig.common.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
// FIXME(bajtos) LB4 is not compatible with this setting yet
1111
"strictPropertyInitialization": false,
1212

13+
"incremental": true,
14+
1315
"lib": ["es2018", "esnext.asynciterable"],
1416
"module": "commonjs",
1517
"moduleResolution": "node",

packages/cli/generators/project/templates/tsconfig.json.ejs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,27 @@
33
<% if (project.loopbackBuild) { -%>
44
"extends": "@loopback/build/config/tsconfig.common.json",
55
"compilerOptions": {
6-
"rootDir": "src"
6+
"outDir": "dist",
7+
"rootDir": "src",
8+
"tsBuildInfoFile": "dist/.tsbuildinfo"
79
},
810
"include": ["src"]
911
<% } else { -%>
1012
"compilerOptions": {
13+
"outDir": "dist",
1114
"rootDir": "src",
1215
16+
1317
"emitDecoratorMetadata": true,
1418
"experimentalDecorators": true,
1519
"noImplicitAny": true,
1620
"strictNullChecks": true,
1721
"resolveJsonModule": true,
1822
"skipLibCheck": true,
1923
24+
"incremental": true,
25+
"tsBuildInfoFile": "dist/.tsbuildinfo",
26+
2027
"lib": ["es2018", "esnext.asynciterable"],
2128
"module": "commonjs",
2229
"moduleResolution": "node",

packages/context/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

packages/core/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

packages/http-caching-proxy/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

packages/http-server/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

packages/metadata/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

packages/openapi-spec-builder/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

packages/openapi-v3-types/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

packages/openapi-v3/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

packages/repository-json-schema/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

packages/repository/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

packages/rest-explorer/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

packages/rest/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

packages/service-proxy/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

packages/testlab/tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5-
"rootDir": "src"
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"tsBuildInfoFile": "dist/.tsbuildinfo"
68
},
79
"include": ["src"]
810
}

0 commit comments

Comments
 (0)