Migrate to ESM, switch to Vitest and update dependencies - #548
Merged
Conversation
Remove module-alias, which was not compatible with npx and scripts, by converting the package to ESM and using relative imports instead of the "@" path alias. Closes #57 Apply pending Renovate updates: actions/setup-node v7, commander v15, eslint v10, and stylelint v17, stylelint-config-standard-scss v17 and stylelint-order v8 in the generated project template. TypeScript goes to v6 instead of v7 because typescript-eslint still requires "<6.1.0". Bump @tikui/core to v8 in the generated project template, which raises its required Node.js version to 22. Drop Node.js 20 support and add Node.js 26 support. Replace Jest with Vitest, keeping the same coverage reporters. Move "@types/fs-extra", "@types/node" and rimraf to the development dependencies: none of them is imported at runtime, rimraf only serves the clean script and the test fixtures. Installing the CLI now pulls 6 packages weighing 676 kB instead of 19 packages weighing 11 MB. Drop dead configuration along the way: the "main" entry pointed to a file that never existed, "test/tsconfig.json" was referenced nowhere, and "experimentalDecorators", "emitDecoratorMetadata", "preserveConstEnums" and "noImplicitAny" are respectively unused or implied by the strict mode TypeScript 6 enables by default. Turn the copyright year into a range ending with present, like Tikui core does. Those changes break compatibility, so bump the version to 4.0.0. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.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.
Remove module-alias, which was not compatible with npx and scripts, by converting the package to ESM and using relative imports instead of the "@" path alias.
Closes #57
Apply pending Renovate updates: actions/setup-node v7, commander v15, eslint v10, and stylelint v17, stylelint-config-standard-scss v17 and stylelint-order v8 in the generated project template. TypeScript goes to v6 instead of v7 because typescript-eslint still requires "<6.1.0".
Bump @tikui/core to v8 in the generated project template, which raises its required Node.js version to 22.
Drop Node.js 20 support and add Node.js 26 support.
Replace Jest with Vitest, keeping the same coverage reporters.
Move "@types/fs-extra", "@types/node" and rimraf to the development dependencies: none of them is imported at runtime, rimraf only serves the clean script and the test fixtures. Installing the CLI now pulls 6 packages weighing 676 kB instead of 19 packages weighing 11 MB.
Drop dead configuration along the way: the "main" entry pointed to a file that never existed, "test/tsconfig.json" was referenced nowhere, and "experimentalDecorators", "emitDecoratorMetadata", "preserveConstEnums" and "noImplicitAny" are respectively unused or implied by the strict mode TypeScript 6 enables by default.
Turn the copyright year into a range ending with present, like Tikui core does.
Those changes break compatibility, so bump the version to 4.0.0.