Skip to content

fix(svelte): publish types for the root export - #973

Draft
hyfdev wants to merge 1 commit into
mainfrom
fix/svelte-root-types
Draft

hyfdev wants to merge 1 commit into
mainfrom
fix/svelte-root-types

Conversation

@hyfdev

@hyfdev hyfdev commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

A new Svelte app fails npx svelte-check with seven errors inside @void/svelte:

node_modules/@void/svelte/src/runtime/index.ts:3:27
Error: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.

With this change, it reports no errors.

The package pointed TypeScript at its .ts source, so svelte-check checked it under the app's settings.

The build now generates declarations for TypeScript to read, and Vite still loads the source.

The generator, svelte2tsx, doesn't support the workspace's TypeScript 7, so it gets TypeScript 6 of its own.

Fixes #972.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedsvelte2tsx@​0.7.63871008996100

View full report

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://fix-svelte-root-types-void-cloud.voidzero-docs.workers.dev (commit d1e1a1d)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://5e99341a-void-cloud.voidzero-docs.workers.dev d1e1a1d 2026-11-29T01:07:43.570Z Visit the dashboard ↗

This branch has not been deployed

No deployments
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.

@void/svelte's root export has no type declarations, so svelte-check fails in a new Svelte app

1 participant