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

Publish packages to JSR in addition to NPM #27

Open
jaybuidl opened this issue Nov 27, 2024 · 0 comments
Open

Publish packages to JSR in addition to NPM #27

jaybuidl opened this issue Nov 27, 2024 · 0 comments

Comments

@jaybuidl
Copy link
Member

jaybuidl commented Nov 27, 2024

Why JSR.io?

Because it supports Typescript directly, it hands .d.ts file transpilation among other things.
It uses NPM under the hood to distribute packages as web-standard ECMAScript modules.

It's used by Viem among others..

Note: it promote ESM over CommonJS, not sure if it's compatible with CommonJS

Note on NPM compatibility:

Unlike with native JSR imports, you are not directly importing TypeScript code. Instead JSR transpiles the TypeScript code to JavaScript before it is installed into your node_modules directory.

@jaybuidl jaybuidl changed the title Publish packages to JSR instead of NPM Publish packages to JSR in addition to NPM Nov 27, 2024
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

No branches or pull requests

1 participant