Skip to content

Commit e4988b0

Browse files
committed
fix: update exports and types
1 parent 57345ce commit e4988b0

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
"require": "./dist/ssr-stub.js",
1515
"types": "./dist/repl.d.ts"
1616
},
17+
"./monaco-editor": {
18+
"import": "./dist/vue-repl-monaco-editor.js",
19+
"require": null,
20+
"types": "./dist/src/editor/MonacoEditor.vue.d.ts"
21+
},
1722
"./style.css": "./dist/style.css",
1823
"./dist/style.css": "./dist/style.css"
1924
},
@@ -47,7 +52,7 @@
4752
"hash-sum": "^2.0.0",
4853
"rimraf": "^3.0.2",
4954
"sucrase": "^3.20.1",
50-
"typescript": "^4.5.4",
55+
"typescript": "^4.7.3",
5156
"vite": "^2.9.8",
5257
"vscode-languageserver-protocol": "^3.17.1",
5358
"vue": "^3.2.37",

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/monaco/Monaco.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@ import * as monaco from 'monaco-editor';
99
import { setupThemePromise } from './utils';
1010
import { setupLs, getOrCreateModel, setupValidate } from './ls';
1111
12-
interface Props {
12+
const props = withDefaults(defineProps<{
1313
value?: string
1414
language?: string;
1515
readonly?: boolean
16-
}
17-
18-
const props = withDefaults(defineProps<Props>(), {
16+
}>(), {
1917
value: '',
2018
readonly: false
2119
})

tsconfig.build.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"lib": ["esnext", "dom"],
1818
"rootDir": ".",
1919
"declaration": true,
20-
"emitDeclarationOnly": true
20+
"skipLibCheck": true,
21+
"emitDeclarationOnly": true,
22+
"jsx": "preserve",
2123
},
2224
"include": ["src"]
2325
}

0 commit comments

Comments
 (0)