Skip to content

Commit

Permalink
fix(types): fix editor generated dts
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 22, 2023
1 parent f3a79bb commit e5705df
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions scripts/cleanup.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ fs.renameSync(
'dist/MonacoEditor.vue.d.ts'
)

fs.renameSync('dist/src/editor/types.d.ts', 'dist/types.d.ts')

fs.rmSync('dist/src', { recursive: true })
2 changes: 1 addition & 1 deletion src/Repl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import SplitPane from './SplitPane.vue'
import Output from './output/Output.vue'
import { Store, ReplStore, SFCOptions } from './store'
import { provide, toRef } from 'vue'
import { EditorComponentType } from './types'
import { EditorComponentType } from './editor/types'
import EditorContainer from './editor/EditorContainer.vue'
export interface Props {
Expand Down
2 changes: 1 addition & 1 deletion src/editor/CodeMirrorEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
<script setup lang="ts">
import CodeMirror, { type Props } from '../codemirror/CodeMirror.vue'
import { computed } from 'vue'
import type { PreviewMode } from '../types'
import type { PreviewMode } from './types'
const props = defineProps<{
value: string
Expand Down
2 changes: 1 addition & 1 deletion src/editor/EditorContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Message from '../Message.vue'
import { debounce } from '../utils'
import { inject } from 'vue'
import { Store } from '../store'
import { EditorComponentType } from '../types'
import { EditorComponentType } from './types'
const props = defineProps<{
editorComponent: EditorComponentType
Expand Down
2 changes: 1 addition & 1 deletion src/editor/MonacoEditor.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import Monaco from '../monaco/Monaco.vue'
import type { PreviewMode } from '../types'
import type { PreviewMode } from './types'
defineProps<{
value: string
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/monaco/Monaco.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import * as monaco from 'monaco-editor-core'
import { getOrCreateModel } from './utils'
import { loadGrammars, loadTheme } from 'monaco-volar'
import { Store } from '../store'
import type { PreviewMode } from '../types'
import type { PreviewMode } from '../editor/types'
const props = withDefaults(
defineProps<{
Expand Down
2 changes: 1 addition & 1 deletion src/output/Output.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Preview from './Preview.vue'
import { Store } from '../store'
import { inject, ref, computed } from 'vue'
import type { OutputModes } from './types'
import { EditorComponentType } from '../types'
import { EditorComponentType } from '../editor/types'
const props = defineProps<{
editorComponent: EditorComponentType
Expand Down

0 comments on commit e5705df

Please sign in to comment.