Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs-preview-create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile

Expand Down
3 changes: 1 addition & 2 deletions apps/svelte.dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"check": "node scripts/update.js && svelte-kit sync && svelte-check",
"format": "prettier --write .",
"lint": "prettier --check .",
"sync-docs": "tsx scripts/sync-docs/index.ts",
"sync-docs": "node scripts/sync-docs/index.ts",
"sync-packages": "node scripts/sync-packages/index.ts"
},
"dependencies": {
Expand Down Expand Up @@ -79,7 +79,6 @@
"svelte-check": "^4.3.1",
"svelte-preprocess": "^6.0.3",
"tiny-glob": "^0.2.9",
"tsx": "^4.19.0",
"typescript": "^5.5.4",
"valibot": "^1.1.0",
"vite": "^7.0.4",
Expand Down
1 change: 1 addition & 0 deletions apps/svelte.dev/scripts/sync-docs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { preprocess } from '@sveltejs/site-kit/markdown/preprocess';
import path from 'node:path';
import fs from 'node:fs';
import { parseArgs } from 'node:util';
import process from 'node:process';
import ts from 'typescript';
import glob from 'tiny-glob/sync.js';
import chokidar from 'chokidar';
Expand Down
3 changes: 2 additions & 1 deletion apps/svelte.dev/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"moduleResolution": "bundler"
"moduleResolution": "bundler",
"rewriteRelativeImportExtensions": true
}
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
// except $lib which is handled by https://kit.svelte.dev/docs/configuration#files
Expand Down
4 changes: 2 additions & 2 deletions packages/site-kit/src/lib/markdown/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export { render_content_markdown } from './renderer';
export { render_content_markdown } from './renderer.ts';

export { transform, slugify, clean, strip_origin } from './utils';
export { transform, slugify, clean, strip_origin } from './utils.ts';

// TODO none of these really belong here
export type Modules = Array<{
Expand Down
4 changes: 2 additions & 2 deletions packages/site-kit/src/lib/markdown/preprocess.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from 'node:fs';
import path from 'node:path';
import { SHIKI_LANGUAGE_MAP, strip_origin } from './utils';
import type { Declaration, TypeElement, Modules } from './index';
import { SHIKI_LANGUAGE_MAP, strip_origin } from './utils.ts';
import type { Declaration, TypeElement, Modules } from './index.ts';

/**
* Replace module/export placeholders during `sync-docs`
Expand Down
2 changes: 1 addition & 1 deletion packages/site-kit/src/lib/markdown/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { createHighlighterCore } from 'shiki/core';
import { createOnigurumaEngine } from 'shiki/engine/oniguruma';
import { createCssVariablesTheme } from 'shiki';
import { transformerTwoslash } from '@shikijs/twoslash';
import { SHIKI_LANGUAGE_MAP, slugify, smart_quotes, transform } from './utils';
import { SHIKI_LANGUAGE_MAP, slugify, smart_quotes, transform } from './utils.ts';

interface SnippetOptions {
file: string | null;
Expand Down
3 changes: 2 additions & 1 deletion packages/site-kit/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"moduleResolution": "bundler",
"module": "esnext",
"target": "esnext",
"skipLibCheck": true // TODO remove once vite-plugin-svelte exposes PluginOptions
"skipLibCheck": true, // TODO remove once vite-plugin-svelte exposes PluginOptions
"rewriteRelativeImportExtensions": true
},
"include": ["./src/**/*.js", "./src/**/*.ts", "./src/**/*.svelte"]
}
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.