Skip to content

Commit

Permalink
chore: move all tsx able to core.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Dsaquel committed Jan 24, 2025
1 parent 81fa81e commit f113e28
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 23 deletions.
11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,9 @@
"import": "./dist/codemirror-editor.js",
"require": null
},
"./store": {
"types": "./dist/store.d.ts",
"import": "./dist/store.js",
"require": null
},
"./transform": {
"types": "./dist/transform.d.ts",
"import": "./dist/transform.js",
"./core": {
"types": "./dist/core.d.ts",
"import": "./dist/core.js",
"require": null
},
"./package.json": "./package.json",
Expand Down
13 changes: 13 additions & 0 deletions src/core.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export {
useStore,
File,
type SFCOptions,
type StoreState,
type Store,
type ReplStore,
} from './store'
export { useVueImportMap, mergeImportMap, type ImportMap } from './import-map'
export { compileFile } from './transform'
export type { Props as ReplProps } from './Repl.vue'
export type { OutputModes } from './types'
export { version as languageToolsVersion } from '@vue/language-service/package.json'
14 changes: 1 addition & 13 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
export { default as Repl } from './Repl.vue'
export { default as Preview } from './output/Preview.vue'
export {
useStore,
File,
type SFCOptions,
type StoreState,
type Store,
type ReplStore,
} from './store'
export { useVueImportMap, mergeImportMap, type ImportMap } from './import-map'
export { compileFile } from './transform'
export type { Props as ReplProps } from './Repl.vue'
export type { OutputModes } from './types'
export { version as languageToolsVersion } from '@vue/language-service/package.json'
export * from './core'
3 changes: 1 addition & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ export default mergeConfig(base, {
lib: {
entry: {
'vue-repl': './src/index.ts',
store: './src/store.ts',
transform: './src/transform.ts',
core: './src/core.ts',
'monaco-editor': './src/editor/MonacoEditor.vue',
'codemirror-editor': './src/editor/CodeMirrorEditor.vue',
},
Expand Down

0 comments on commit f113e28

Please sign in to comment.