Skip to content

feat(twoslash-vue): Introduce forked ESM-only Twoslash-vue#86

Merged
Adammatthiesen merged 3 commits into
mainfrom
adam/twoslash-vue
Feb 24, 2026
Merged

feat(twoslash-vue): Introduce forked ESM-only Twoslash-vue#86
Adammatthiesen merged 3 commits into
mainfrom
adam/twoslash-vue

Conversation

@Adammatthiesen

@Adammatthiesen Adammatthiesen commented Feb 24, 2026

Copy link
Copy Markdown
Member

This pull request introduces a new ESM-only package, @ec-ts/twoslash-vue, which extends Twoslash with support for Vue Single File Components (SFCs). It includes the initial implementation, configuration, documentation, and a comprehensive test suite with fixtures. Additionally, project configuration files are updated to integrate the new package and improve test and linting workflows.

New package: Vue SFC support for Twoslash

  • Added new package @ec-ts/twoslash-vue with an ESM-only implementation that provides Twoslash features for Vue SFCs, including its own package.json, LICENSE, and README.md. The package exports a createTwoslasher function and includes peer dependencies and build/test scripts. [1] [2] [3] [4] [5]

Testing and fixtures

  • Introduced a test suite for @ec-ts/twoslash-vue using Vitest, with multiple Vue fixture files (*.vue) and a test runner that validates Twoslash output against file snapshots. [1] [2] [3] [4] [5] [6]

Project configuration and integration

  • Updated project-level configs to include @ec-ts/twoslash-vue in Allure test reports (allurerc.mjs), labeler rules (.github/labeler.yml), and as a dev dependency (package.json). [1] [2] [3]
  • Adjusted biome.json to exclude test results and fixture files from linting and formatting, streamlining the development workflow. [1] [2]

- Created example Vue component with TypeScript setup and reactive properties.
- Added test utility file for parent suite name.
- Configured TypeScript with tsconfig files for source and test directories.
- Implemented build configuration using tsdown.
- Set up Vitest configuration for testing.
@htg-1-studiocms-cloud

htg-1-studiocms-cloud Bot commented Feb 24, 2026

Copy link
Copy Markdown

Dokploy Preview Deployment

Name Status Preview Updated (UTC)
Expressive-Code-Twoslash Docs ✅ Done Preview URL 2026-02-24T05:55:38.812Z

@changeset-bot

changeset-bot Bot commented Feb 24, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 93c6aef

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@ec-ts/twoslash-vue Major

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

@pkg-pr-new

pkg-pr-new Bot commented Feb 24, 2026

Copy link
Copy Markdown
css-js-gen

npm i https://pkg.pr.new/withstudiocms/expressive-code-twoslash/css-js-gen@86

expressive-code-twoslash

npm i https://pkg.pr.new/withstudiocms/expressive-code-twoslash@86

@ec-ts/twoslash

npm i https://pkg.pr.new/withstudiocms/expressive-code-twoslash/@ec-ts/twoslash@86

@ec-ts/twoslash-vue

npm i https://pkg.pr.new/withstudiocms/expressive-code-twoslash/@ec-ts/twoslash-vue@86

@ec-ts/vfs

npm i https://pkg.pr.new/withstudiocms/expressive-code-twoslash/@ec-ts/vfs@86

commit: 93c6aef

@apollo-git-bot

apollo-git-bot Bot commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

Allure Report Summary

Name Duration Stats New Flaky Retry Report
css-js-gen Tests 13ms Passed tests 37 37 0 0
@ec-ts/twoslash Tests 29s 831ms Passed tests 29 29 0 0
@ec-ts/twoslash-vue Tests 6s 295ms Passed tests 7 7 0 0
@ec-ts/vfs Tests 9s 693ms Passed tests 21 21 0 0

@Adammatthiesen Adammatthiesen marked this pull request as ready for review February 24, 2026 06:07
@Adammatthiesen Adammatthiesen requested a review from a team as a code owner February 24, 2026 06:07
@Adammatthiesen Adammatthiesen merged commit abfea45 into main Feb 24, 2026
11 checks passed
@Adammatthiesen Adammatthiesen deleted the adam/twoslash-vue branch February 24, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants