create-svelte-docsmith 0.3.4 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-svelte-docsmith",
3
- "version": "0.3.4",
3
+ "version": "0.4.1",
4
4
  "description": "Scaffold a documentation site powered by Svelte DocSmith.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -37,7 +37,7 @@
37
37
  "node": ">=18"
38
38
  },
39
39
  "dependencies": {
40
- "@clack/prompts": "^1.7.0"
40
+ "@clack/prompts": "^1.8.1"
41
41
  },
42
42
  "scripts": {
43
43
  "test": "node --test test/**/*.test.js",
@@ -7,20 +7,24 @@
7
7
  "dev": "vite dev",
8
8
  "build": "vite build",
9
9
  "preview": "vite preview",
10
+ "prepare": "svelte-kit sync || echo ''",
10
11
  "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json"
11
12
  },
12
13
  "dependencies": {
13
- "svelte-docsmith": "^0.13.0"
14
+ "svelte-docsmith": "^0.15.0"
14
15
  },
15
16
  "devDependencies": {
16
- "@sveltejs/adapter-auto": "^7.0.1",
17
- "@sveltejs/kit": "^2.16.0",
18
- "@sveltejs/vite-plugin-svelte": "^7.1.2",
17
+ "@sveltejs/adapter-auto": "^8.0.0",
18
+ "@sveltejs/kit": "^3.0.0",
19
+ "@sveltejs/vite-plugin-svelte": "^7.3.0",
19
20
  "@tailwindcss/vite": "^4.0.0",
20
- "svelte": "^5.0.0",
21
- "svelte-check": "^4.0.0",
21
+ "svelte": "^5.57.1",
22
+ "svelte-check": "^4.7.0",
22
23
  "tailwindcss": "^4.0.0",
23
- "typescript": "^5.0.0",
24
- "vite": "^8.0.0"
24
+ "typescript": "^6.0.0",
25
+ "vite": "^8.0.12"
26
+ },
27
+ "imports": {
28
+ "#lib/*": "./src/lib/*"
25
29
  }
26
30
  }
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { docs, versions } from 'svelte-docsmith/content';
3
3
  import { ErrorPage } from 'svelte-docsmith';
4
- import { siteConfig } from '$lib/site-config';
4
+ import { siteConfig } from '#lib/site-config.ts';
5
5
  </script>
6
6
 
7
7
  <ErrorPage
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { docs } from 'svelte-docsmith/content';
3
3
  import { DocsShell, Hero, FeatureGrid, Feature, CTA, Action } from 'svelte-docsmith';
4
- import { siteConfig } from '$lib/site-config';
4
+ import { siteConfig } from '#lib/site-config.ts';
5
5
  </script>
6
6
 
7
7
  <!--
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { docs } from 'svelte-docsmith/content';
3
3
  import { DocsShell } from 'svelte-docsmith';
4
- import { siteConfig } from '$lib/site-config';
4
+ import { siteConfig } from '#lib/site-config.ts';
5
5
  import type { Snippet } from 'svelte';
6
6
 
7
7
  const { children }: { children: Snippet } = $props();
@@ -1,7 +1,7 @@
1
1
  import { docs } from 'svelte-docsmith/llms';
2
2
  import { versions } from 'svelte-docsmith/content';
3
3
  import { generateLlmsFullTxt, currentOnly } from 'svelte-docsmith';
4
- import { siteConfig } from '$lib/site-config';
4
+ import { siteConfig } from '#lib/site-config.ts';
5
5
 
6
6
  export const prerender = true;
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { docs } from 'svelte-docsmith/llms';
2
2
  import { versions } from 'svelte-docsmith/content';
3
3
  import { generateLlmsTxt, currentOnly } from 'svelte-docsmith';
4
- import { siteConfig } from '$lib/site-config';
4
+ import { siteConfig } from '#lib/site-config.ts';
5
5
 
6
6
  export const prerender = true;
7
7
 
@@ -1,6 +1,6 @@
1
1
  import { docs, versions } from 'svelte-docsmith/content';
2
2
  import { generateSitemap, currentOnly } from 'svelte-docsmith';
3
- import { siteConfig } from '$lib/site-config';
3
+ import { siteConfig } from '#lib/site-config.ts';
4
4
 
5
5
  export const prerender = true;
6
6
 
@@ -1,14 +1,8 @@
1
1
  {
2
- "extends": "./.svelte-kit/tsconfig.json",
2
+ "extends": "$app/tsconfig",
3
3
  "compilerOptions": {
4
- "allowJs": true,
5
- "checkJs": true,
6
- "esModuleInterop": true,
7
- "forceConsistentCasingInFileNames": true,
8
- "resolveJsonModule": true,
9
- "skipLibCheck": true,
10
4
  "sourceMap": true,
11
- "strict": true,
12
- "moduleResolution": "bundler"
13
- }
5
+ "strict": true
6
+ },
7
+ "include": ["src", "vite.config.ts"]
14
8
  }
@@ -1,10 +1,22 @@
1
- import tailwindcss from '@tailwindcss/vite';
1
+ import adapter from '@sveltejs/adapter-auto';
2
2
  import { sveltekit } from '@sveltejs/kit/vite';
3
+ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
4
+ import tailwindcss from '@tailwindcss/vite';
3
5
  import { defineConfig } from 'vite';
4
6
  import { docsmith } from 'svelte-docsmith/vite';
7
+ import { docsmith as markdown } from 'svelte-docsmith/preprocess';
5
8
 
6
9
  export default defineConfig({
7
- // `docsmith()` builds the content + search indexes and powers LiveExample.
8
- // It must come before sveltekit().
9
- plugins: [docsmith(), tailwindcss(), sveltekit()]
10
+ plugins: [
11
+ // `docsmith()` builds the content + search indexes and powers LiveExample.
12
+ // It must come before sveltekit().
13
+ docsmith(),
14
+ tailwindcss(),
15
+ sveltekit({
16
+ // `.md` files are compiled as routes by the DocSmith preprocessor.
17
+ extensions: ['.svelte', '.md'],
18
+ preprocess: [vitePreprocess(), markdown()],
19
+ adapter: adapter()
20
+ })
21
+ ]
10
22
  });
@@ -1,15 +0,0 @@
1
- import adapter from '@sveltejs/adapter-auto';
2
- import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
3
- import { docsmith } from 'svelte-docsmith/preprocess';
4
-
5
- /** @type {import('@sveltejs/kit').Config} */
6
- const config = {
7
- // `.md` files are compiled as routes by the DocSmith preprocessor.
8
- extensions: ['.svelte', '.md'],
9
- preprocess: [vitePreprocess(), docsmith()],
10
- kit: {
11
- adapter: adapter()
12
- }
13
- };
14
-
15
- export default config;