Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pkglint): library creation generates incorrect package names #26330

Merged
merged 4 commits into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-backupgateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.

```ts nofixture
import * as backupgateway from '@aws-cdk/aws-backupgateway';
import * as backupgateway from 'aws-cdk-lib/aws-backupgateway';
```

<!--BEGIN CFNONLY DISCLAIMER-->
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-cleanrooms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.

```ts nofixture
import * as cleanrooms from '@aws-cdk/aws-cleanrooms';
import * as cleanrooms from 'aws-cdk-lib/aws-cleanrooms';
```

<!--BEGIN CFNONLY DISCLAIMER-->
Expand Down
2 changes: 1 addition & 1 deletion tools/@aws-cdk/pkglint/lib/library-creation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function createModuleDefinitionFromCfnNamespace(namespace: string): Modul
const submoduleName = moduleName.replace('-', '_');

const lowcaseModuleName = moduleBaseName.toLocaleLowerCase();
const packageName = `@aws-cdk/${moduleName}`;
const packageName = `aws-cdk-lib/${moduleName}`;

// dotnet names
const dotnetPackage = `Amazon.CDK.${moduleFamily}.${moduleBaseName}`;
Expand Down