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

chore(build): remove some scripts in favor of emit-module-package-file #149

Merged

Conversation

Andarist
Copy link
Contributor

Just a small trick that colocates generating this file with the actual build that depends~ on it.

@pkerschbaum
Copy link
Contributor

LGTM

typescript({ module: 'ESNext' }),
// https://github.com/rollup/rollup/blob/69ff4181e701a0fe0026d0ba147f31bc86beffa8/build-plugins/emit-module-package-file.ts
{
generateBundle() {
Copy link
Contributor

Choose a reason for hiding this comment

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

would that call generateESMPackageJson or something instead of generateBundle?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hm, this is just a plugin hook - it has to use a specific name to be called at the appropriate moment

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah ok, didn't know that!

@alexreardon alexreardon merged commit 3039cf5 into alexreardon:master Sep 28, 2022
@alexreardon
Copy link
Owner

@pkerschbaum feel free to raise a PR to update the name if you would like :)

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.

None yet

3 participants