Skip to content

feat(cli): Use esm modules over commonjs#2324

Closed
spotandjake wants to merge 3 commits intograin-lang:mainfrom
spotandjake:spotandjake-esm
Closed

feat(cli): Use esm modules over commonjs#2324
spotandjake wants to merge 3 commits intograin-lang:mainfrom
spotandjake:spotandjake-esm

Conversation

@spotandjake
Copy link
Member

@spotandjake spotandjake commented Oct 26, 2025

Small pr switching from require to import in the cli, I figure we might as well switch to esm given we are on a version of node that supports it.

Draft as I would still like to test the js build, but it takes forever locally.

@spotandjake spotandjake self-assigned this Oct 26, 2025
@spotandjake spotandjake added the admin Issues related to workflow, automation, and contributor documentation label Oct 26, 2025
@spotandjake spotandjake marked this pull request as ready for review October 28, 2025 21:29
@spotandjake
Copy link
Member Author

I needed to update prettier in order to run the formatter but while I was there I figured I should update the other dependencies in the cli, Happy to split that into a seperate pr if wanted.

@ospencer
Copy link
Member

Yeah, I think we should split that.

@spotandjake
Copy link
Member Author

Alright I just update prettier in this pr and I'll update the others in a seperate pr later.

@spotandjake
Copy link
Member Author

Closing as it doesn't look like we can make this change with pkg just yet sadly.

@spotandjake spotandjake closed this Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

admin Issues related to workflow, automation, and contributor documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants