feat: fix building with newer sveltekit

This commit is contained in:
Damillora 2022-07-24 23:44:19 +07:00
parent 649bf4e207
commit a0fcc161f7
2 changed files with 30 additions and 13 deletions

View File

@ -1,15 +1,19 @@
<script> <script>
import PageHeader from "$lib/components/PageHeader.svelte"; import PageHeader from '@damillora/plachta/components/PageHeader/PageHeader.svelte';
import Container from '@damillora/plachta/components/Container/Container.svelte';
import Post from '@damillora/plachta/components/PageTypes/Post.svelte';
import PostMain from '@damillora/plachta/components/Post/PostMain.svelte';
</script> </script>
<svelte:head> <svelte:head>
<title>Damillora: Game Profile</title> <title>Damillora: Game Profile</title>
</svelte:head> </svelte:head>
<div class="page"> <Container>
<PageHeader> <Post>
<h1>Game Profile: maimai DX</h1> <PageHeader>
<p><a href="https://maimai.sega.com/">Game Website</a></p> <h1>Game Profile: maimai DX</h1>
</PageHeader> <p><a href="https://maimai.sega.com/">Game Website</a></p>
<main class="container mx-auto main" /> </PageHeader>
</div> </Post>
</Container>

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"module": "es2020", "module": "es2020",
"lib": ["es2020"], "lib": [
"es2020"
],
"target": "es2019", "target": "es2019",
/** /**
svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript
@ -23,8 +25,19 @@
"allowJs": true, "allowJs": true,
"checkJs": true, "checkJs": true,
"paths": { "paths": {
"$lib/*": ["src/lib/*"] "$lib": [
"src/lib"
],
"$lib/*": [
"src/lib/*"
]
} }
}, },
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.ts", "src/**/*.svelte"] "include": [
"src/**/*.d.ts",
"src/**/*.js",
"src/**/*.ts",
"src/**/*.svelte"
],
"extends": "./.svelte-kit/tsconfig.json"
} }