Skip to content

Commit f113e28

Browse files
author
Dsaquel
committed
chore: move all tsx able to core.ts
1 parent 81fa81e commit f113e28

File tree

4 files changed

+18
-23
lines changed

4 files changed

+18
-23
lines changed

package.json

Lines changed: 3 additions & 8 deletions
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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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 { OutputModes } from './types'
13+
export { version as languageToolsVersion } from '@vue/language-service/package.json'

src/index.ts

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

vite.config.ts

Lines changed: 1 addition & 2 deletions
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)