Skip to content
This repository was archived by the owner on Aug 5, 2021. It is now read-only.

Commit 25dd29a

Browse files
committed
Enable composite builds.
Few additional tricks are required: 1) Due to resolveJsonModule being true, we need to explicitly add json files to "include" (microsoft/TypeScript#25636) 2) "clean" script must remove *.tsbuildinfo files when deleting build artifacts (otherwise build will be skipped)
1 parent b117ca2 commit 25dd29a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,4 @@ api-docs/
6565

6666
# Idea
6767
.idea
68+
*.tsbuildinfo

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"build:apidocs": "lb-apidocs",
1515
"build": "lb-tsc es2017 --outDir dist",
1616
"build:watch": "lb-tsc --watch",
17-
"clean": "lb-clean dist",
17+
"clean": "lb-clean dist && rm tsconfig.tsbuildinfo",
1818
"lint": "npm run prettier:check && npm run tslint",
1919
"lint:fix": "npm run tslint:fix && npm run prettier:fix",
2020
"prettier:cli": "lb-prettier \"**/*.ts\" \"**/*.js\"",

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"$schema": "http://json.schemastore.org/tsconfig",
33
"extends": "@loopback/build/config/tsconfig.common.json",
44
"compilerOptions": {
5+
"composite": true,
56
"rootDir": "src"
67
},
7-
"include": ["src"]
8+
"include": ["src/**/*", "src/**/*.json"]
89
}

0 commit comments

Comments
 (0)