Skip to content

Commit

Permalink
fix: partial configuration type
Browse files Browse the repository at this point in the history
  • Loading branch information
TorstenDittmann committed Feb 28, 2024
1 parent fe7e379 commit 34d794b
Show file tree
Hide file tree
Showing 6 changed files with 1,034 additions and 276 deletions.
7 changes: 4 additions & 3 deletions apps/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
},
"devDependencies": {
"@playwright/test": "^1.28.1",
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "*",
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.17.0",
"eslint": "^8.53.0",
Expand All @@ -28,7 +29,7 @@
"svelte-markdoc-preprocess": "*",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^4.5.1"
"vite": "^5.0.0"
},
"type": "module",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/demo/src/routes/playground/+page.server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { redirect } from '@sveltejs/kit';

export function load() {
throw redirect(307, '/playground/tags');
redirect(307, '/playground/tags');
}
2 changes: 1 addition & 1 deletion apps/demo/src/routes/playground/glob/[slug]/+page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export async function load({ params }) {
frontmatter: post.frontmatter,
};
} catch (e) {
throw error(404, `Could not find ${params.slug}`);
error(404, `Could not find ${params.slug}`);
}
}
6 changes: 5 additions & 1 deletion apps/demo/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import adapter from '@sveltejs/adapter-auto';
import { vitePreprocess } from '@sveltejs/kit/vite';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import { dirname, join } from 'path';
import { fileURLToPath } from 'url';
import { markdoc } from 'svelte-markdoc-preprocess';

/**
* @param {string} file
* @returns {string}
*/
function absoulute(file) {
return join(dirname(fileURLToPath(import.meta.url)), file);
}
Expand Down
Loading

0 comments on commit 34d794b

Please sign in to comment.