Skip to content

Switch to esm - #178

Merged
shadowspawn merged 4 commits into
release/15.xfrom
feature/esm-only
May 28, 2026
Merged

shadowspawn merged 4 commits into
release/15.xfrom
feature/esm-only

Conversation

@shadowspawn

Copy link
Copy Markdown
Contributor

Following patterns in Commander, I have switched over to pure ESM. (I had forgotten I hadn't done that yet. 😅 )

The noisy change is that imports need to have explicit file name and extension.

A simplification I made is to just reexport all of the Commander exports. In Commander 11 the default export was a Command singleton with the other named exports bolted on. I wanted the extra-typings export to be clean. That extra processing is no longer required now that Commander has tidy exports: tj/commander.js#2017

Comment thread package.json Outdated
@shadowspawn
shadowspawn merged commit 6d0ea59 into release/15.x May 28, 2026
18 checks passed
@shadowspawn
shadowspawn deleted the feature/esm-only branch May 28, 2026 04:01
@shadowspawn shadowspawn added pending release On a branch for eventual release, but not yet merged to main. and removed pending release On a branch for eventual release, but not yet merged to main. labels May 28, 2026
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