Skip to content

Commit e4d49da

Browse files
committed
Modern tsconfig
1 parent bc4a494 commit e4d49da

File tree

3 files changed

+10
-16
lines changed

3 files changed

+10
-16
lines changed

packages/apollo-angular/schematics/install/index.cts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function importSetup(options: Schema): Rule {
112112
})`;
113113
});
114114
} else {
115-
await addModuleImportToRootModule(host, 'GraphQLModule', './graphql.module', options.project);
115+
return addModuleImportToRootModule(host, 'GraphQLModule', './graphql.module', options.project);
116116
}
117117
};
118118
}
@@ -125,7 +125,7 @@ function importHttpClient(options: Schema): Rule {
125125
return code`${external('provideHttpClient', '@angular/common/http')}()`;
126126
});
127127
} else {
128-
await addModuleImportToRootModule(
128+
return addModuleImportToRootModule(
129129
host,
130130
'HttpClientModule',
131131
'@angular/common/http',

packages/apollo-angular/tsconfig.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
"compilerOptions": {
44
"rootDir": ".",
55
"baseUrl": ".",
6-
"outDir": "build"
7-
},
8-
"angularCompilerOptions": {
9-
"enableIvy": false
6+
"outDir": "build",
7+
"inlineSources": true
108
},
119
"include": [
1210
"headers/**/*.ts",

tsconfig.json

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,23 @@
22
"compileOnSave": false,
33
"compilerOptions": {
44
"target": "ES2022",
5-
"module": "esnext",
6-
"moduleResolution": "node",
5+
"module": "preserve",
76
"importHelpers": true,
8-
"inlineSources": true,
97
"sourceMap": true,
108
"declaration": true,
119
"outDir": "build",
12-
"lib": ["es6", "dom"],
13-
"downlevelIteration": true,
1410
"experimentalDecorators": true,
15-
"noImplicitAny": true,
11+
"noImplicitOverride": true,
12+
"noImplicitReturns": true,
1613
"noUnusedLocals": true,
1714
"noUnusedParameters": true,
18-
"strictNullChecks": true,
1915
"strict": true
2016
},
2117
"angularCompilerOptions": {
22-
"enableResourceInlining": true,
23-
"fullTemplateTypeCheck": true,
24-
"skipTemplateCodegen": true,
2518
"strictInjectionParameters": true,
19+
"strictInputAccessModifiers": true,
20+
"typeCheckHostBindings": true,
21+
"strictTemplates": true,
2622
"strictMetadataEmit": true
2723
}
2824
}

0 commit comments

Comments
 (0)