Skip to content

Comments

chore: change package entry point to lib/library/index.js#54

Merged
cdklabs-automation merged 2 commits intomainfrom
behuang/add_library_entrypoint
Nov 21, 2025
Merged

chore: change package entry point to lib/library/index.js#54
cdklabs-automation merged 2 commits intomainfrom
behuang/add_library_entrypoint

Conversation

@huang-benny
Copy link
Contributor

@huang-benny huang-benny commented Nov 20, 2025

Updates the package entry point from lib/index.js to lib/library/index.js to align with the project's build output structure.

Changes

  • Modified .projenrc.ts to set entrypoint: 'lib/library/index.js'
  • Regenerated package.json via projen

.projenrc.ts Outdated
bin: {
'cdk-construct-analyzer': './bin/cdk-construct-analyzer',
},
entrypoint: 'lib/lib/index.js',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoah, why lib / lib? that seems wrong. lets chat about it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok i think i understand -> lets do the following

  1. change the lib folder into library because lib, while short for library has a separate convention that makes things confusing
  2. do you aim to release only the library? what about the cli? i think its fine for now, so the entrypoint should be lib/library/index.js, but its not great

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I renamed the lib folder to library

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused, can you explain why the entrypoint lib/library/index.js is not great? I'm currently under the impression that both the CLI and library will be released when I publish

@huang-benny huang-benny changed the title chore: change package entry point to lib/lib/index.js chore: change package entry point to lib/library/index.js Nov 21, 2025
@cdklabs-automation cdklabs-automation added this pull request to the merge queue Nov 21, 2025
Merged via the queue into main with commit deead35 Nov 21, 2025
9 checks passed
@cdklabs-automation cdklabs-automation deleted the behuang/add_library_entrypoint branch November 21, 2025 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants