build: migrate to esm, vitest & oxlint - #804
Merged
Merged
Conversation
commit: |
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.
Please describe the changes this PR makes and why it should be merged:
Migrate the TypeScript open-source template to the canonical Necord TypeScript 7 toolchain:
No tests, fixtures, package-smoke scripts, or migration helpers were added.
Status and versioning classification:
Breaking build/package-tooling change: the template now emits and advertises native ESM and requires Node ^20.19.0 or >=22.13.0.
Verification from Node v24.20.0 / npm 11.19.0:
npm install --package-lock-only --ignore-scripts — exit 0
npm ci — exit 0; 397 packages installed, 398 audited
npm run lint — exit 0; 0 warnings/errors
npm run typecheck — exit 0
npm run build — exit 0; dist/index.js and dist/index.d.ts emitted
npm test — exit 0; no test files found as expected
npm run test:ci — exit 0; no test files found as expected, V8 coverage 100% of 0/0
npm pack --dry-run --json — exit 0; 5 package entries, limited to LICENSE, README.md, dist output, and package.json
git diff --check — exit 0
canonical config parity checks — exit 0 for .oxlintrc.json, vitest.config.mts, tsconfig.json, and tsconfig.build.json
added test-file check — 0 test/spec files added
npm audit --json — exit 1 due to one pre-existing high-severity js-yaml@4.3.0 dev-only advisory already present at the base SHA; no audit fix is included in this focused migration
There are no application source code changes
Typings/build metadata have been updated
This PR includes breaking package/tooling changes