Skip to content

Commit 1255f8a

Browse files
committed
chore: move all tsx able to core.ts
1 parent 7cf3a04 commit 1255f8a

File tree

4 files changed

+19
-24
lines changed

4 files changed

+19
-24
lines changed

package.json

+3-8
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,9 @@
2626
"import": "./dist/codemirror-editor.js",
2727
"require": null
2828
},
29-
"./store": {
30-
"types": "./dist/store.d.ts",
31-
"import": "./dist/store.js",
32-
"require": null
33-
},
34-
"./transform": {
35-
"types": "./dist/transform.d.ts",
36-
"import": "./dist/transform.js",
29+
"./core": {
30+
"types": "./dist/core.d.ts",
31+
"import": "./dist/core.js",
3732
"require": null
3833
},
3934
"./package.json": "./package.json",

src/core.ts

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export {
2+
useStore,
3+
File,
4+
type SFCOptions,
5+
type StoreState,
6+
type Store,
7+
type ReplStore,
8+
} from './store'
9+
export { useVueImportMap, mergeImportMap, type ImportMap } from './import-map'
10+
export { compileFile } from './transform'
11+
export type { Props as ReplProps } from './Repl.vue'
12+
export type { SandboxProps } from './output/Sandbox.vue'
13+
export type { OutputModes } from './types'
14+
export { version as languageToolsVersion } from '@vue/language-service/package.json'

src/index.ts

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,4 @@
11
export { default as Repl } from './Repl.vue'
22
export { default as Preview } from './output/Preview.vue'
33
export { default as Sandbox } from './output/Sandbox.vue'
4-
export type { SandboxProps } from './output/Sandbox.vue'
5-
export {
6-
useStore,
7-
File,
8-
type SFCOptions,
9-
type StoreState,
10-
type Store,
11-
type ReplStore,
12-
} from './store'
13-
export { useVueImportMap, mergeImportMap, type ImportMap } from './import-map'
14-
export { compileFile } from './transform'
15-
export type { Props as ReplProps } from './Repl.vue'
16-
export type { OutputModes } from './types'
17-
export { version as languageToolsVersion } from '@vue/language-service/package.json'
4+
export * from './core'

vite.config.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ export default mergeConfig(base, {
5757
lib: {
5858
entry: {
5959
'vue-repl': './src/index.ts',
60-
store: './src/store.ts',
61-
transform: './src/transform.ts',
60+
core: './src/core.ts',
6261
'monaco-editor': './src/editor/MonacoEditor.vue',
6362
'codemirror-editor': './src/editor/CodeMirrorEditor.vue',
6463
},

0 commit comments

Comments
 (0)