Skip to content

fix(web): typescript checking with svelte-check#51

Open
andykais-claude wants to merge 4 commits into
mainfrom
claude/fix-deno-svelte-check-jVewr
Open

fix(web): typescript checking with svelte-check#51
andykais-claude wants to merge 4 commits into
mainfrom
claude/fix-deno-svelte-check-jVewr

Conversation

@andykais-claude

Copy link
Copy Markdown
Collaborator

Summary

This PR upgrades the SvelteKit framework and related dependencies to their latest versions, and adds type definitions for application locals.

Key Changes

  • SvelteKit: Updated from 2.43.7 to 2.50.0

    • Includes updated dependencies: @standard-schema/spec (1.0.0 → 1.1.0), devalue (5.3.2 → 5.6.2)
    • Adds TypeScript as an optional peer dependency
    • Updates sirv dependency from 2.0.4 to 3.0.2
    • Removes import-meta-resolve and tiny-glob from direct dependencies
  • svelte-check: Updated from 4.3.2 to 4.3.5

    • Bug fixes and improvements to Svelte type checking
  • App Types: Enhanced src/app.d.ts with proper type definitions

    • Added Forager type from @forager/core
    • Added Config type from $lib/server/config.ts
    • Defined App.Locals interface with forager and config properties for type-safe access to application locals

Notable Details

  • Lock file reflects the new dependency tree with updated integrity hashes
  • The upgrade maintains compatibility with existing Svelte 5.39.8 and other pinned dependencies
  • Type definitions now provide better IDE support and type safety for server-side locals

…ions

- Upgrade @sveltejs/kit from 2.43.7 to 2.50.0 for remoteFunctions support
- Upgrade svelte-check from 4.3.2 to 4.3.5 (latest version)
- Add type declarations for SvelteKit Locals (forager, config)
- This is the first step towards fixing deno task check for TypeScript

Related to getting svelte-check passing with Deno runtime

https://claude.ai/code/session_01YCs9FArDiG2W6tp8LEbwix
@andykais andykais changed the title Upgrade SvelteKit to 2.50.0 and svelte-check to 4.3.5 fix(web): typescript checking with svelte-check Jan 22, 2026
andykais and others added 3 commits January 22, 2026 12:23
… paths

- Create tsconfig.svelte.json with paths for @forager/core and ~/
- Update check scripts to use tsconfig.svelte.json
- Comment out experimental.remoteFunctions (causing sync errors)
- Configure baseUrl and paths to resolve core package internal imports
- Exclude node_modules from type checking

This allows svelte-check to resolve @forager/core internal ~/  imports
while keeping the main tsconfig.json clean for SvelteKit.

Reduced errors from 431 to 241 (190 errors fixed)

https://claude.ai/code/session_01YCs9FArDiG2W6tp8LEbwix
- Create deno.d.ts with Deno global namespace declarations
- Create std.d.ts with @std/* package module declarations
- Add missing APIs: Command.spawn(), Deno.readDir(), WalkEntry, etc.
- Update @std/log with ConsoleHandler and Logger constructor
- Add @std/path SEPARATOR, @std/media-types extensionsByType
- Exclude ../core from tsconfig to prevent deep checking

Reduced errors from 431 to 205 (226 errors fixed)

This allows svelte-check to understand Deno and JSR standard library
types when checking files that import from @forager/core.

https://claude.ai/code/session_01YCs9FArDiG2W6tp8LEbwix
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.

3 participants