diff --git a/packages/cdktf-cli/lib/debug.ts b/packages/cdktf-cli/lib/debug.ts index 71af8b1ad3..49da755c37 100644 --- a/packages/cdktf-cli/lib/debug.ts +++ b/packages/cdktf-cli/lib/debug.ts @@ -253,9 +253,12 @@ async function getJavaPackageVersion(packageName: string) { return undefined; } + // We need to search for the package name AND a colon to not match a line like + // [INFO] com.hashicorp:cdktf-provider-aws:jar:9.0.9:compile + // when looking for the cdktf package (see Github issue #1994) const versionLine = resolutionPart .split(/\r\n|\r|\n/) - .find((line) => line.includes(javaPackageName)); + .find((line) => line.includes(`${javaPackageName}:`)); if (!versionLine) { logger.debug( diff --git a/packages/cdktf-cli/templates/typescript/tsconfig.json b/packages/cdktf-cli/templates/typescript/tsconfig.json index 785e09884b..3e53f1dbf7 100644 --- a/packages/cdktf-cli/templates/typescript/tsconfig.json +++ b/packages/cdktf-cli/templates/typescript/tsconfig.json @@ -23,7 +23,8 @@ "strictPropertyInitialization": true, "stripInternal": true, "target": "ES2018", - "incremental": true + "incremental": true, + "skipLibCheck": true }, "include": [ "**/*.ts"