From 0cce18433554e2ea3e705e2af902171272e88e08 Mon Sep 17 00:00:00 2001 From: Vincent Lesierse Date: Mon, 4 Mar 2024 12:52:24 +0100 Subject: [PATCH] Change to .NET package to namespace --- packages/aws-cdk-lib/scripts/submodules/index.ts | 2 +- tools/@aws-cdk/pkglint/lib/library-creation.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/aws-cdk-lib/scripts/submodules/index.ts b/packages/aws-cdk-lib/scripts/submodules/index.ts index f3652037f7ee8..1983ea5234fce 100644 --- a/packages/aws-cdk-lib/scripts/submodules/index.ts +++ b/packages/aws-cdk-lib/scripts/submodules/index.ts @@ -65,7 +65,7 @@ async function ensureSubmodule(submodule: ModuleMapEntry, modulePath: string) { package: submodule.definition.javaPackage, }, dotnet: { - package: submodule.definition.dotnetPackage, + namespace: submodule.definition.dotnetNamespace, }, python: { module: submodule.definition.pythonModuleName, diff --git a/tools/@aws-cdk/pkglint/lib/library-creation.ts b/tools/@aws-cdk/pkglint/lib/library-creation.ts index 4287f99d5f969..07edd01d76950 100644 --- a/tools/@aws-cdk/pkglint/lib/library-creation.ts +++ b/tools/@aws-cdk/pkglint/lib/library-creation.ts @@ -9,7 +9,7 @@ export interface ModuleDefinition { readonly moduleBaseName: string; readonly packageName: string; - readonly dotnetPackage: string; + readonly dotnetNamespace: string; readonly javaGroupId: string; readonly javaPackage: string; readonly javaArtifactId: string; @@ -27,7 +27,7 @@ export function createModuleDefinitionFromCfnNamespace(namespace: string): Modul const packageName = `aws-cdk-lib/${moduleName}`; // dotnet names - const dotnetPackage = `Amazon.CDK.${moduleFamily}.${moduleBaseName}`; + const dotnetNamespace = `Amazon.CDK.${moduleFamily}.${moduleBaseName}`; // java names const javaGroupId = 'software.amazon.awscdk'; @@ -49,7 +49,7 @@ export function createModuleDefinitionFromCfnNamespace(namespace: string): Modul moduleFamily, moduleBaseName, packageName, - dotnetPackage, + dotnetNamespace, javaGroupId, javaPackage, javaArtifactId,