chore: modernise tooling — Node 24, remove chalk/fs-extra/globby/jest in favour of native Node APIs#206
Open
MattP007 wants to merge 4 commits into
Open
chore: modernise tooling — Node 24, remove chalk/fs-extra/globby/jest in favour of native Node APIs#206MattP007 wants to merge 4 commits into
MattP007 wants to merge 4 commits into
Conversation
Co-authored-by: Dayton <SVDEA001@target.com>
Co-authored-by: Dayton <SVDEA001@target.com>
Co-authored-by: Dayton <SVDEA001@target.com>
Co-authored-by: Dayton <SVDEA001@target.com>
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.
Summary
Removes all third-party utility dependencies that are now superseded by Node.js built-ins, and upgrades the project to Node 24.
Changes
Node upgrade
.nvmrctov24.14.1engines.nodeto>=22@types/nodeto22.15.21Removed
ts-nodeRemoved
chalkutil.styleText(available natively in Node 22+) is available as a replacement when needed.Replaced
fs-extra+globbywithnode:fs/promisesfs.readFile/fs.writeFile→ named imports fromnode:fs/promisesglob()→ nativenode:fs/promisesglobasync iterator with a small gitignore-awareexcludecallback@types/fs-extradev dependencyReplaced
jest+ts-jestwithnode:testnode:test/node:assert/strict--experimental-test-module-mocks+mock.module()--experimental-transform-types(needed forenumin source)scripts/ts-loader.mjs— a tiny ESM loader hook that rewrites.js→.tsfor relative imports so source files keep.jsextensions (correct fortscNodeNextoutput) while still resolving at test timesrc/__tests__/helpers.tswith assertion utilities mirroring Jest'sexpect()matchers (assertCalledWith,stringContaining,objectContaining, etc.)jest,ts-jest,@types/jest,jest.config.js"type": "module"(ESM) +tsconfigupdated tomodule: NodeNextResult