Skip to content

Commit 5acaf5d

Browse files
clydinalan-agius4
authored andcommitted
build: reduce amount of dev tsconfig paths entries
The use of wildcard entries with the tsconfig `paths` allows the root import of the `@angular-devkit/` packages to be reduced to a single entry.
1 parent dddcb2e commit 5acaf5d

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tsconfig.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,18 @@
1616
"rootDir": ".",
1717
"rootDirs": [".", "./dist-schema/bin/"],
1818
"paths": {
19-
"@angular-devkit/core": ["./packages/angular_devkit/core/src/index"],
2019
"@angular-devkit/core/node": ["./packages/angular_devkit/core/node/index"],
2120
"@angular-devkit/core/node/testing": ["./packages/angular_devkit/core/node/testing/index"],
22-
"@angular-devkit/schematics": ["./packages/angular_devkit/schematics/src/index"],
2321
"@angular-devkit/schematics/tasks": ["./packages/angular_devkit/schematics/tasks/index"],
2422
"@angular-devkit/schematics/tasks/node": [
2523
"./packages/angular_devkit/schematics/tasks/node/index"
2624
],
2725
"@angular-devkit/schematics/tools": ["./packages/angular_devkit/schematics/tools/index"],
2826
"@angular-devkit/schematics/testing": ["./packages/angular_devkit/schematics/testing/index"],
29-
"@angular-devkit/architect": ["./packages/angular_devkit/architect/src/index"],
3027
"@angular-devkit/architect/testing": ["./packages/angular_devkit/architect/testing/index"],
31-
"@angular-devkit/build-angular": ["./packages/angular_devkit/build_angular/src/index"],
32-
"@angular-devkit/build-webpack": ["./packages/angular_devkit/build_webpack/src/index"],
33-
"@ngtools/webpack": ["./packages/ngtools/webpack/src/index"],
34-
"@schematics/angular": ["./packages/schematics/angular/index"]
28+
"@angular-devkit/*": ["./packages/angular_devkit/*/src"],
29+
"@ngtools/webpack": ["./packages/ngtools/webpack/src"],
30+
"@schematics/angular": ["./packages/schematics/angular"]
3531
},
3632
"plugins": [
3733
{

0 commit comments

Comments
 (0)