Skip to content

feat!: move to esm-only #246

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 3 commits into from
Mar 18, 2025
Merged

feat!: move to esm-only #246

merged 3 commits into from
Mar 18, 2025

Conversation

43081j
Copy link
Collaborator

@43081j 43081j commented Mar 9, 2025

Migrates to emitting only ES modules now that require(esm) is supported in all LTS versions of node other than the soon-to-die-off 18.x.

Copy link

changeset-bot bot commented Mar 9, 2025

🦋 Changeset detected

Latest commit: ccc9b17

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@clack/prompts Major
@clack/core Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@43081j 43081j requested a review from natemoo-re March 9, 2025 18:43
Copy link

pkg-pr-new bot commented Mar 9, 2025

Open in Stackblitz@example/basic@example/changesets

npm i https://pkg.pr.new/bombshell-dev/clack/@clack/core@246
npm i https://pkg.pr.new/bombshell-dev/clack/@clack/prompts@246

commit: ccc9b17

@@ -18,4 +18,5 @@ jobs:
node-version: 20
cache: "pnpm"
- run: pnpm install
- run: pnpm build
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm guessing this worked before because we used bundler resolution which basically tells typescript not to care so much about unresolved imports

Copy link
Member

@natemoo-re natemoo-re left a comment

Choose a reason for hiding this comment

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

LGTM! Just going to hold off on merging until #250 lands.

43081j added 2 commits March 18, 2025 10:23
Migrates to emitting only ES modules now that `require(esm)` is
supported in all LTS versions of node other than the soon-to-die-off
18.x.
Otherwise the `core` package won't have a `dist/` output to resolve DTS
files during `tsc`.
@natemoo-re natemoo-re merged commit c713fd5 into main Mar 18, 2025
6 checks passed
@natemoo-re natemoo-re deleted the esm-only-maybe branch March 18, 2025 15:58
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.

2 participants