Conversation
Update the package to current tooling and fix long-standing rough edges. - chalk 4 -> 5 (ESM), moment -> dayjs, eslint 8 -> 9 flat config - convert package to ESM (type: module, exports map, engines) - move fs/path imports out of the per-call hot path - route error/warn/crash to stderr, everything else to stdout - format objects and multiple args like console.log - auto-create the log folder instead of erroring mid-run BREAKING CHANGE: package is now ESM-only. Consumers must use `import`, not `require()`. error/warn/crash now write to stderr while all other levels write to stdout. Bumped to v2.0.0.
Publish on GitHub Release using npm Trusted Publishing (OIDC), avoiding a long-lived NPM_TOKEN secret. Node 22 and npm >= 11.5.1 required by trusted publishing; provenance is generated automatically.
Add a CI workflow that lints and tests on Node 18/20/22 for every push and pull request. Switch the publish workflow to trigger on push to main and guard it so npm publish runs only when the package.json version is not already on npm. Track the test directory (previously gitignored) so the smoke test that npm test runs is present in the repo and available to CI.
Bare push and pull_request triggers both fired on PR branches, doubling every matrix job to six checks. Scoping push to main leaves three checks per event.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update the package to current tooling and fix long-standing rough edges.
BREAKING CHANGE: package is now ESM-only. Consumers must use
import, notrequire(). error/warn/crash now write to stderr while all other levels write to stdout. Bumped to v2.0.0.