Skip to content

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.

@changeset-bot
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
@pkg-pr-new
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

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.

3 participants