Skip to content

Commit 93e253b

Browse files
alan-agius4mgechev
authored andcommitted
refactor: rename tsconfig.json to tsconfig.base.json
1 parent 9423a9e commit 93e253b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+214
-140
lines changed

integration/angular_cli/e2e/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../tsconfig.json",
2+
"extends": "../tsconfig.base.json",
33
"compilerOptions": {
44
"outDir": "../out-tsc/e2e",
55
"module": "commonjs",

integration/angular_cli/tsconfig.app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./tsconfig.json",
2+
"extends": "./tsconfig.base.json",
33
"compilerOptions": {
44
"outDir": "./out-tsc/app",
55
"types": []
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"compileOnSave": false,
3+
"compilerOptions": {
4+
"baseUrl": "./",
5+
"outDir": "./dist/out-tsc",
6+
"sourceMap": true,
7+
"declaration": false,
8+
"moduleResolution": "node",
9+
"emitDecoratorMetadata": true,
10+
"experimentalDecorators": true,
11+
"target": "es2015",
12+
"module": "es2020",
13+
"typeRoots": [
14+
"node_modules/@types"
15+
],
16+
"lib": [
17+
"es2017",
18+
"dom"
19+
]
20+
},
21+
"angularCompilerOptions": {
22+
"enableIvy": true,
23+
"disableTypeScriptVersionCheck": true
24+
}
25+
}

integration/angular_cli/tsconfig.json

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
1+
// This tsConfig file is used by editors and TypeScript’s language server to improve development experience.
2+
// Note: This should not be used to perform a compilation.
13
{
2-
"compileOnSave": false,
3-
"compilerOptions": {
4-
"baseUrl": "./",
5-
"outDir": "./dist/out-tsc",
6-
"sourceMap": true,
7-
"declaration": false,
8-
"downlevelIteration": true,
9-
"experimentalDecorators": true,
10-
"module": "es2020",
11-
"moduleResolution": "node",
12-
"importHelpers": true,
13-
"target": "es2015",
14-
"lib": [
15-
"es2018",
16-
"dom"
17-
]
18-
},
19-
"angularCompilerOptions": {
20-
"fullTemplateTypeCheck": true,
21-
"strictInjectionParameters": true
22-
}
4+
"files": [],
5+
"references": [
6+
{
7+
"path": "./tsconfig.app.json"
8+
},
9+
{
10+
"path": "./tsconfig.spec.json"
11+
}
12+
]
2313
}

integration/angular_cli/tsconfig.spec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./tsconfig.json",
2+
"extends": "./tsconfig.base.json",
33
"compilerOptions": {
44
"outDir": "./out-tsc/spec",
55
"types": [

packages/angular/cli/commands/version-impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export class VersionCommand extends Command<VersionCommandSchema> {
194194

195195
private getIvyWorkspace(): string {
196196
try {
197-
const content = fs.readFileSync(path.resolve(this.workspace.root, 'tsconfig.json'), 'utf-8');
197+
const content = fs.readFileSync(path.resolve(this.workspace.root, 'tsconfig.base.json'), 'utf-8');
198198
const tsConfig = parseJson(content, JsonParseMode.Loose);
199199
if (!isJsonObject(tsConfig)) {
200200
return '<error>';

packages/angular_devkit/build_angular/src/browser/specs/allow-js_spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('Browser Builder allow js', () => {
2929
});
3030

3131
host.replaceInFile(
32-
'tsconfig.json',
32+
'tsconfig.base.json',
3333
'"target": "es2015"',
3434
'"target": "es5", "allowJs": true',
3535
);
@@ -54,7 +54,7 @@ describe('Browser Builder allow js', () => {
5454
});
5555

5656
host.replaceInFile(
57-
'tsconfig.json',
57+
'tsconfig.base.json',
5858
'"target": "es2015"',
5959
'"target": "es5", "allowJs": true',
6060
);
@@ -81,7 +81,7 @@ describe('Browser Builder allow js', () => {
8181
});
8282

8383
host.replaceInFile(
84-
'tsconfig.json',
84+
'tsconfig.base.json',
8585
'"target": "es2015"',
8686
'"target": "es5", "allowJs": true',
8787
);

packages/angular_devkit/build_angular/src/browser/specs/differential_loading_spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe('Browser Builder with differential loading', () => {
6464

6565
it('emits all the neccessary files for target of ES2016', async () => {
6666
host.replaceInFile(
67-
'tsconfig.json',
67+
'tsconfig.base.json',
6868
'"target": "es2015",',
6969
`"target": "es2016",`,
7070
);
@@ -106,7 +106,7 @@ describe('Browser Builder with differential loading', () => {
106106

107107
it('emits all the neccessary files for target of ESNext', async () => {
108108
host.replaceInFile(
109-
'tsconfig.json',
109+
'tsconfig.base.json',
110110
'"target": "es2015",',
111111
`"target": "esnext",`,
112112
);

packages/angular_devkit/build_angular/src/browser/specs/optimization-level_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('Browser Builder optimization level', () => {
2727
});
2828

2929
it('tsconfig target changes optimizations to use ES2015', async () => {
30-
host.replaceInFile('tsconfig.json', '"target": "es5"', '"target": "es2015"');
30+
host.replaceInFile('tsconfig.base.json', '"target": "es5"', '"target": "es2015"');
3131

3232
const overrides = { optimization: true };
3333
const { files } = await browserBuild(architect, host, target, overrides);

packages/angular_devkit/build_angular/src/browser/specs/resolve-json-module_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('Browser Builder resolve json module', () => {
2929
});
3030

3131
host.replaceInFile(
32-
'tsconfig.json',
32+
'tsconfig.base.json',
3333
'"target": "es2015"',
3434
'"target": "es5", "resolveJsonModule": true',
3535
);

0 commit comments

Comments
 (0)