Skip to content

feat: redo how we transpile JSR packages for NPM #377

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

Merged
merged 9 commits into from
Apr 17, 2024

Conversation

lucacasonato
Copy link
Member

@lucacasonato lucacasonato commented Apr 11, 2024

This fixes various bugs, and introduces some features. Specifically:

  • Source code is now included in the bundle to enable better "Go to source definition"
  • More usecases using /// <reference types="..." /> work correctly now, especially when d.ts file is not a sibling of the JS file.
  • We strip /// <reference types="..." /> out of JS files correctly now.
  • We transpile npm: and jsr: specifiers in user provided .d.ts files now.

Fixes #367
Fixes #372
Fixes #364
Fixes #313
Fixes #180
Fixes #216
Fixes #326

Blocked on landing denoland/deno_ast#230 and denoland/deno_graph#429 Landed

This fixes various bugs, and introduces some features. Specifically:

- Source code is now included in the bundle to enable better "Go to source definition"
- More usecases using `/// <reference types="..." />` work correctly now, especially when d.ts file is not a sibling of the JS file.
- We strip `/// <reference types="..." />` out of JS files correctly now.
- We transpile `npm:` and `jsr:` specifiers in user provided `.d.ts` files now.
.env.example Outdated
Copy link
Member Author

Choose a reason for hiding this comment

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

This was duplicated with the /api/.env.example.

@lucacasonato lucacasonato requested a review from dsherret April 15, 2024 13:31
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM!

@lucacasonato lucacasonato added this pull request to the merge queue Apr 17, 2024
Merged via the queue into main with commit 6437812 Apr 17, 2024
8 checks passed
@lucacasonato lucacasonato deleted the redo_npm_packaging branch April 17, 2024 13:51
@ekwoka
Copy link

ekwoka commented Apr 18, 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
5 participants