Skip to content

Commit 22d98c1

Browse files
Correct a dependency resolution failure in generated angular typescript packages for Angular 12 (#10525)
* Update version * Rebuild sample
1 parent f5e8f54 commit 22d98c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAngularClientCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ private void addNpmPackageGeneration(SemVer ngVersion) {
293293

294294
// Set the typescript version compatible to the Angular version
295295
if (ngVersion.atLeast("12.0.0")) {
296-
additionalProperties.put("tsVersion", ">=4.2.3 <4.3.0");
296+
additionalProperties.put("tsVersion", ">=4.3.0 <4.4.0");
297297
} else if (ngVersion.atLeast("11.0.0")) {
298298
additionalProperties.put("tsVersion", ">=4.0.0 <4.1.0");
299299
} else if (ngVersion.atLeast("10.0.0")) {

samples/client/petstore/typescript-angular-v12-provided-in-root/builds/with-npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"reflect-metadata": "^0.1.3",
2626
"rxjs": "^6.6.0",
2727
"tsickle": "^0.43.0",
28-
"typescript": ">=4.2.3 <4.3.0",
28+
"typescript": ">=4.3.0 <4.4.0",
2929
"zone.js": "^0.11.4"
3030
},
3131
"publishConfig": {

0 commit comments

Comments
 (0)