Skip to content

Conversation

@mrozbarry
Copy link
Collaborator

For a while, I've been getting dependency warning/update emails on this repository, mostly around babel. I think node has mostly gotten to the point where es6 can be used natively without a bunch of build steps.

Well, I am right in theory, but jest doesn't officially support type:module es6 and has a few experimental/hacky solutions.

I also noticed that test coverage was pretty low, so I may up that coverage while I'm here.

- use type: module
- remove unused babel modules
- remove webpack configuration
- singleton module export to wrap chalk
- the singleton allows mocked/swapped module methods with es6 modules
@mrozbarry mrozbarry added enhancement dependencies Pull requests that update a dependency file labels Jan 2, 2024
@mrozbarry mrozbarry requested a review from bdo January 2, 2024 05:05
@ghost
Copy link

ghost commented Jan 2, 2024

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

- ci reported an incomatibility issue
- could not reproduce locally
@mrozbarry mrozbarry force-pushed the x-wrap-chalk-and-use-nodejs-modules branch from 71e3358 to ee4c377 Compare January 2, 2024 05:09
@mrozbarry
Copy link
Collaborator Author

@bdo looks like circleci might need to be updated to use node 18 instead of 14. Change is related to bumping up commitlint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants