Skip to content

Commit e5705df

Browse files
committed
fix(types): fix editor generated dts
1 parent f3a79bb commit e5705df

File tree

8 files changed

+8
-6
lines changed

8 files changed

+8
-6
lines changed

scripts/cleanup.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ fs.renameSync(
1111
'dist/MonacoEditor.vue.d.ts'
1212
)
1313

14+
fs.renameSync('dist/src/editor/types.d.ts', 'dist/types.d.ts')
15+
1416
fs.rmSync('dist/src', { recursive: true })

src/Repl.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import SplitPane from './SplitPane.vue'
33
import Output from './output/Output.vue'
44
import { Store, ReplStore, SFCOptions } from './store'
55
import { provide, toRef } from 'vue'
6-
import { EditorComponentType } from './types'
6+
import { EditorComponentType } from './editor/types'
77
import EditorContainer from './editor/EditorContainer.vue'
88
99
export interface Props {

src/editor/CodeMirrorEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
<script setup lang="ts">
88
import CodeMirror, { type Props } from '../codemirror/CodeMirror.vue'
99
import { computed } from 'vue'
10-
import type { PreviewMode } from '../types'
10+
import type { PreviewMode } from './types'
1111
1212
const props = defineProps<{
1313
value: string

src/editor/EditorContainer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Message from '../Message.vue'
44
import { debounce } from '../utils'
55
import { inject } from 'vue'
66
import { Store } from '../store'
7-
import { EditorComponentType } from '../types'
7+
import { EditorComponentType } from './types'
88
99
const props = defineProps<{
1010
editorComponent: EditorComponentType

src/editor/MonacoEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import Monaco from '../monaco/Monaco.vue'
3-
import type { PreviewMode } from '../types'
3+
import type { PreviewMode } from './types'
44
55
defineProps<{
66
value: string
File renamed without changes.

src/monaco/Monaco.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import * as monaco from 'monaco-editor-core'
2020
import { getOrCreateModel } from './utils'
2121
import { loadGrammars, loadTheme } from 'monaco-volar'
2222
import { Store } from '../store'
23-
import type { PreviewMode } from '../types'
23+
import type { PreviewMode } from '../editor/types'
2424
2525
const props = withDefaults(
2626
defineProps<{

src/output/Output.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Preview from './Preview.vue'
33
import { Store } from '../store'
44
import { inject, ref, computed } from 'vue'
55
import type { OutputModes } from './types'
6-
import { EditorComponentType } from '../types'
6+
import { EditorComponentType } from '../editor/types'
77
88
const props = defineProps<{
99
editorComponent: EditorComponentType

0 commit comments

Comments
 (0)