Skip to content
Open
Changes from all commits
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
5 changes: 4 additions & 1 deletion projenrc/type-package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ export class CloudFormationTypeProject extends Component {

new License(project, { spdx });

const description = options.type.Description ?? `Constructs for ${typeName}`;
// Force trim the description to keep the char limit as per core-metadata specification for python packaging
// Ref: https://packaging.python.org/en/latest/specifications/core-metadata/#summary
const description: string = options.type.Description ? options.type.Description.slice(0, 512) : `Constructs for ${typeName}`;

const npmName = `${npmScope}/${typeNameKebab}`;

new Readme(project, {
Expand Down