Skip to content

Commit e9de6a7

Browse files
clydinangular-robot[bot]
authored andcommitted
build: cleanup unneeded and/or default tsconfig options
General cleanup of the main repository `tsconfig.json` file that is used by the IDE and as a base for the build and test tsconfig files. This includes removal of options that contain default values and removal of no longer existing paths from several options. A project relative path in one of the development scripts was also fixed to use a relative path to be consist with all other paths.
1 parent d012e25 commit e9de6a7

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/bazel-out/
22
/dist-schema/
33
/goldens/public-api
4+
/packages/angular_devkit/build_angular/src/babel-bazel.d.ts
45
/packages/angular_devkit/build_angular/test/
56
/packages/angular_devkit/build_webpack/test/
67
/packages/angular_devkit/schematics_cli/blank/project-files/

.ng-dev/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"compilerOptions": {
44
"module": "Node16",
55
"moduleResolution": "Node16",
6-
"noEmit": true
6+
"noEmit": true,
7+
"types": []
78
},
89
"include": ["**/*.mts"],
910
"exclude": []

scripts/json-help.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import { logging } from '@angular-devkit/core';
1010
import { spawnSync } from 'child_process';
1111
import { promises as fs } from 'fs';
1212
import * as os from 'os';
13-
import { JsonHelp } from 'packages/angular/cli/src/command-builder/utilities/json-help';
1413
import * as path from 'path';
1514
import { packages } from '../lib/packages';
15+
import { JsonHelp } from '../packages/angular/cli/src/command-builder/utilities/json-help';
1616
import create from './create';
1717

1818
export async function createTemporaryProject(logger: logging.Logger): Promise<string> {

tsconfig.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,13 @@
88
"experimentalDecorators": true,
99
"noFallthroughCasesInSwitch": true,
1010
"noImplicitOverride": true,
11-
"noUnusedParameters": false,
12-
"noUnusedLocals": false,
1311
"outDir": "./dist",
14-
"rootDir": ".",
1512
"skipLibCheck": true,
1613
"strict": true,
1714
"target": "es2019",
1815
"lib": ["es2020"],
19-
"baseUrl": "",
20-
"rootDirs": [".", "./dist-schema/", "./bazel-bin/"],
21-
"typeRoots": ["./node_modules/@types"],
22-
"types": ["node", "jasmine"],
16+
"rootDir": ".",
17+
"rootDirs": [".", "./dist-schema/"],
2318
"paths": {
2419
"@angular-devkit/core": ["./packages/angular_devkit/core/src/index"],
2520
"@angular-devkit/core/node": ["./packages/angular_devkit/core/node/index"],
@@ -50,8 +45,7 @@
5045
"suppressTsconfigOverrideWarnings": true
5146
},
5247
"exclude": [
53-
"packages/angular_devkit/build_angular/src/bazel-babel.d.ts",
54-
"bazel-out/**/*",
48+
"packages/angular_devkit/build_angular/src/babel-bazel.d.ts",
5549
"dist/**/*",
5650
"dist-schema/**",
5751
"goldens/**/*",
@@ -60,9 +54,7 @@
6054
"packages/angular_devkit/schematics_cli/blank/*-files/**/*",
6155
"packages/angular_devkit/schematics_cli/schematic/files/**/*",
6256
"packages/angular_devkit/*/test/**/*",
63-
"packages/schematics/*/*/*files/**/*",
6457
"tests/**/*",
65-
"tools/**/*",
6658
".ng-dev/**/*"
6759
]
6860
}

0 commit comments

Comments
 (0)