feat: SvelteKit v2 and Vite v5 (#510)

* feat: SvelteKit v2 and Vite v5

* Remove duplicated tsconfig include
This commit is contained in:
Lachlan Collins
2023-12-16 10:14:53 +11:00
committed by GitHub
parent 7c518a9c2e
commit 94273b78e7
5 changed files with 408 additions and 273 deletions

View File

@@ -18,8 +18,9 @@
"devDependencies": {
"@actions/core": "^1.10.1",
"@macfja/svelte-persistent-store": "2.4.1",
"@sveltejs/adapter-static": "^2.0.3",
"@sveltejs/kit": "^1.30.3",
"@sveltejs/adapter-static": "^3.0.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@types/itemsjs": "^2.1.6",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
@@ -42,8 +43,8 @@
"svelte-select": "^4.4.7",
"typescript": "^5.3.3",
"undici": "^5.28.2",
"vite": "^4.5.1",
"vitest": "^0.33.0",
"vite": "^5.0.10",
"vitest": "^1.0.4",
"zod": "^3.22.4"
},
"lint-staged": {

663
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -15,5 +15,5 @@ export async function load() {
events
};
}
throw error(500);
error(500);
}

View File

@@ -27,5 +27,5 @@ export async function load() {
categories
};
}
throw error(500);
error(500);
}

View File

@@ -1,5 +1,5 @@
import path from 'node:path';
import { vitePreprocess } from '@sveltejs/kit/vite';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import adapter from '@sveltejs/adapter-static';
import hljs from 'highlight.js';
import { mdsvex, escapeSvelte } from 'mdsvex';
@@ -45,8 +45,7 @@ const config = {
...config.include,
'../scripts/**/*.js',
'../prettier.config.js',
'../svelte.config.js',
'../vite.config.js'
'../svelte.config.js'
];
return config;
}