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

Work on packaging metadata #264

Merged
merged 3 commits into from
Jul 21, 2023
Merged

Work on packaging metadata #264

merged 3 commits into from
Jul 21, 2023

Conversation

pkgw
Copy link
Contributor

@pkgw pkgw commented Jul 21, 2023

It looks like it is more correct to add type: module to the TypeScript-based non-Vue packages.

At the moment we're not looking to changing anything about the code in the packages we're distributing, just trying to describe the package contents more correctly.

pkgw added 3 commits July 21, 2023 15:19
We compile our TypeScript to ESM syntax, so we that's what we should do
in the current ecosystem. This doesn't apply to `@wwtelescope/engine`,
which uses UMD module structure (which is compatible with Node/CJS), and
it doesn't seem to work with the Vue components, where it's less of a
priority since we don't really expect other packages to depend on them.

It seems that the current recommendation is to compile to ESM and
potentially transpile to CJS if that's needed. We could look into
providing both CJS and ESM files, which seems increasingly common these
days, but I don't have a sense for much much we need that. The change
here should at least make our files more correct.
@pkgw pkgw merged commit 018ac9e into WorldWideTelescope:master Jul 21, 2023
@pkgw pkgw deleted the packaging branch July 21, 2023 20:59
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.

1 participant