Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit c8293c5

Browse files
committed
fix(docs): fix typings for path resolution
1 parent 5fcee42 commit c8293c5

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

website/src/docs-theme/components/ComponentLinks.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script lang="tsx">
22
import { defineComponent, PropType } from 'vue'
33
import { useColorModeValue } from '@chakra-ui/c-color-mode'
4-
import siteConfig from '../../config/site-config'
4+
import siteConfig from '@/config/site-config'
55
66
export type ComponentLinksProps = {
77
theme?: { componentName: string }

website/src/docs-theme/components/SponsorButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@
3636
</CBox>
3737
</template>
3838
<script setup lang="ts">
39-
import siteConfig from '@/config/site-config.ts'
39+
import siteConfig from '@/config/site-config'
4040
</script>

website/tsconfig.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"compilerOptions": {
3-
"baseUrl": ".",
3+
"baseUrl": "./src",
4+
"paths": {
5+
"~/*": ["./*"],
6+
"@/*": ["./*"]
7+
},
48
"jsx": "preserve",
59
"module": "ESNext",
610
"target": "es2016",
@@ -18,9 +22,6 @@
1822
"vite/client",
1923
"vite-plugin-pages/client"
2024
],
21-
"paths": {
22-
"~/*": ["src/*"]
23-
},
2425
},
2526
"exclude": ["dist", "node_modules"]
2627
}

0 commit comments

Comments
 (0)