chore: migrate to @ec-ts/twoslash for ESM-only functionality#87
Merged
Conversation
- Updated imports in annotations and helpers to use @ec-ts/twoslash instead of twoslash. - Removed references to twoslash and twoslash-vue from pnpm workspace and lock files. - Updated @types/node version from 20.17.1 to 22.19.11 in pnpm-lock.yaml and pnpm-workspace.yaml. - Fixed minor bug that caused a key to not exist due to missing undefined value.
Dokploy Preview Deployment
|
🦋 Changeset detectedLatest commit: 829245e The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
css-js-gen
expressive-code-twoslash
@ec-ts/twoslash
@ec-ts/twoslash-vue
@ec-ts/vfs
commit: |
Contributor
… in Renovate config
RATIU5
approved these changes
Feb 24, 2026
louisescher
approved these changes
Feb 24, 2026
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.
This pull request migrates the
expressive-code-twoslashpackage and related code to use the new@ec-ts/twoslashand@ec-ts/twoslash-vuepackages, replacing the previoustwoslashandtwoslash-vuedependencies. This migration ensures ESM-only compatibility, which is required for Astro and Vite environments. The update also includes minor bug fixes, dependency updates, and TypeScript type improvements.Migration to new Twoslash packages:
twoslashandtwoslash-vuewith@ec-ts/twoslashand@ec-ts/twoslash-vuein both source code andpackage.json, ensuring ESM-only support and compatibility with Astro/Vite.Type and API improvements:
showEmittedFileoption inHandbookOptionsto explicitly allowundefinedvalues, fixing a minor bug where a key could be missing.@ec-ts/twoslashinstead oftwoslash, improving type safety and consistency.Dependency and lockfile updates:
pnpm-lock.yamlfile to remove oldtwoslash/twoslash-vuedependencies and add the new@ec-ts/twoslashpackages, as well as update@types/nodeto version 22.19.11 and set TypeScript peer dependency to^5.5.0.Bug fixes:
General code cleanup:
twoslashandtwoslash-vuepackages from the codebase and lockfile.These changes collectively modernize the codebase for future compatibility and improve overall type safety and reliability.