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

Corrected the addon file locations for TypeScript projects #90

Merged
merged 4 commits into from
Sep 5, 2024

Conversation

ijlee2
Copy link
Owner

@ijlee2 ijlee2 commented Sep 5, 2024

Background

For addon.publicEntrypoints(), I had listed index.js and template-registry.js based on @embroider/addon-blueprint.

I realized that we need to instead list the files as is, i.e. with .ts in TypeScript projects. The addons worked without an issue by accident, because @embroider/addon-dev has been including **/*.ts.

Note

If a consumer had addon-test-support/index.{js,ts} in their v1 addon, they will need to add test-support.js (or test-support.ts) to addon.publicEntrypoints() in the Rollup configuration.

@ijlee2 ijlee2 added the bug Something isn't working label Sep 5, 2024
@ijlee2 ijlee2 changed the title Corrected the file locations for TypeScript projects Corrected the addon file locations for TypeScript projects Sep 5, 2024
@ijlee2 ijlee2 force-pushed the bugfix-publicEntrypoints branch from e483f9d to b4b1c7d Compare September 5, 2024 08:49
@ijlee2 ijlee2 force-pushed the bugfix-publicEntrypoints branch from b4b1c7d to f98e42f Compare September 5, 2024 08:52
@ijlee2 ijlee2 marked this pull request as ready for review September 5, 2024 08:53
@ijlee2 ijlee2 merged commit 6192935 into main Sep 5, 2024
2 checks passed
@ijlee2 ijlee2 deleted the bugfix-publicEntrypoints branch September 5, 2024 08:53
@ijlee2 ijlee2 added the enhance: code Issue asks for new feature or refactor label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhance: code Issue asks for new feature or refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant