Skip to content

Migrate to ESM, switch to Vitest and update dependencies - #548

Merged
Gnuk merged 1 commit into
mainfrom
update-dependencies
Aug 10, 2026
Merged

Migrate to ESM, switch to Vitest and update dependencies#548
Gnuk merged 1 commit into
mainfrom
update-dependencies

Conversation

@Gnuk

@Gnuk Gnuk commented Aug 10, 2026

Copy link
Copy Markdown
Member

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.

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>
@Gnuk
Gnuk merged commit 148c46e into main Aug 10, 2026
6 checks passed
@Gnuk
Gnuk deleted the update-dependencies branch August 10, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove module alias

1 participant