Skip to content

Commit 6fc3646

Browse files
committed
Configure TS paths explicitly
1 parent 06e3889 commit 6fc3646

File tree

4 files changed

+103
-4
lines changed

4 files changed

+103
-4
lines changed

components/Assistant.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import { keymap } from '@codemirror/view'
44
import { type Options } from 'ink-mde'
55
import { nanoid } from 'nanoid'
66
import CoreLink from './CoreLink.vue'
7-
import { type CoreEditor, type CoreScrollable } from '#components'
87
import CoreDivider from '#root/components/CoreDivider.vue'
8+
import type CoreEditor from '/components/CoreEditor.vue'
9+
import type CoreScrollable from '/components/CoreScrollable.vue'
910
import { type SystemInstruction, useSystemInstructions } from '#root/composables/useSystemInstructions'
1011
1112
export default defineComponent({

components/AssistantEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { Prec } from '@codemirror/state'
33
import { keymap } from '@codemirror/view'
44
import { type Options } from 'ink-mde'
5-
import { type CoreEditor } from '#components'
5+
import type CoreEditor from '/components/CoreEditor.vue'
66
import { readonly } from '#root/src/vendor/plugins/readonly'
77
88
export default defineComponent({

components/CoreListboxButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts" setup>
22
import { ListboxButton } from '@headlessui/vue'
3-
import { CoreButton } from '#components'
3+
import CoreButton from '/components/CoreButton.vue'
44
</script>
55

66
<template>

tsconfig.json

Lines changed: 99 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,116 @@
88
"module": "ESNext",
99
"moduleResolution": "Node",
1010
"noEmit": true,
11+
"paths": {
12+
"~": [
13+
"./"
14+
],
15+
"~/*": [
16+
"./*"
17+
],
18+
"@": [
19+
"./"
20+
],
21+
"@/*": [
22+
"./*"
23+
],
24+
"~~": [
25+
"./"
26+
],
27+
"~~/*": [
28+
"./*"
29+
],
30+
"@@": [
31+
"./"
32+
],
33+
"@@/*": [
34+
"./*"
35+
],
36+
"assets": [
37+
"./assets"
38+
],
39+
"assets/*": [
40+
"./assets/*"
41+
],
42+
"public": [
43+
"./public"
44+
],
45+
"public/*": [
46+
"./public/*"
47+
],
48+
"/": [
49+
"./"
50+
],
51+
"/*": [
52+
"./*"
53+
],
54+
"#components": [
55+
"./components"
56+
],
57+
"#components/*": [
58+
"./components/*"
59+
],
60+
"#composables": [
61+
"./composables"
62+
],
63+
"#composables/*": [
64+
"./composables/*"
65+
],
66+
"#helpers": [
67+
"./helpers"
68+
],
69+
"#helpers/*": [
70+
"./helpers/*"
71+
],
72+
"#root": [
73+
"."
74+
],
75+
"#root/*": [
76+
"./*"
77+
],
78+
"#shared": [
79+
"./lib/shared"
80+
],
81+
"#shared/*": [
82+
"./lib/shared/*"
83+
],
84+
"#test": [
85+
"./test"
86+
],
87+
"#test/*": [
88+
"./test/*"
89+
],
90+
"#test-utils": [
91+
"./test/utils"
92+
],
93+
"#test-utils/*": [
94+
"./test/utils/*"
95+
],
96+
"#vue-router": [
97+
"./.nuxt/vue-router-stub"
98+
],
99+
"#imports": [
100+
"./.nuxt/imports"
101+
],
102+
"#build": [
103+
"./.nuxt"
104+
],
105+
"#build/*": [
106+
"./.nuxt/*"
107+
]
108+
},
11109
"resolveJsonModule": true,
12110
"skipLibCheck": true,
13111
"strict": true,
14112
"target": "esnext",
15113
"useDefineForClassFields": true
16114
},
17115
"exclude": [
116+
"**/node_modules",
18117
"./.output",
19118
"./cypress.config.ts",
20119
"./dev-dist",
21120
"./dist",
22-
"./node_modules/cypress/**/*",
23121
"./test/cypress/**/*"
24122
]
25123
}

0 commit comments

Comments
 (0)