File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " json-editor-vue" ,
3+ "pascalCasedName" : " JsonEditorVue" ,
34 "version" : " 0.9.2" ,
45 "private" : false ,
56 "packageManager" : " pnpm@latest" ,
Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ import type { PropType } from 'vue-demi'
1313import { JSONEditor } from 'vanilla-jsoneditor'
1414import { conclude } from 'vue-global-config'
1515import { debounce } from 'lodash-es'
16+ import { pascalCasedName as name } from '../package.json'
1617import { globalAttrs , globalProps } from './index'
1718
1819export type Mode = 'tree' | 'text'
1920
20- const name = 'JsonEditorVue'
2121const modelValueProp = isVue3 ? 'modelValue' : 'value'
2222const updateModelValue = isVue3 ? 'update:modelValue' : 'input'
2323const boolAttrs = [
@@ -166,5 +166,3 @@ export default defineComponent({
166166 return ( ) => h ( 'div' , { ref : 'jsonEditorRef' } )
167167 } ,
168168} )
169-
170- export { name }
Original file line number Diff line number Diff line change 11import type { ConfigEnv , UserConfigExport } from 'vite'
22import dts from 'vite-plugin-dts'
3- import { name } from './package.json'
4- import { name as globalVariableName } from './src/Component'
3+ import { name , pascalCasedName } from './package.json'
54
65// https://vitejs.dev/config/
76export default ( { command } : ConfigEnv ) : UserConfigExport => {
@@ -20,7 +19,10 @@ export default ({ command }: ConfigEnv): UserConfigExport => {
2019 ] ,
2120 output : {
2221 globals : {
23- [ name ] : globalVariableName ,
22+ [ name ] : pascalCasedName ,
23+ 'vanilla-jsoneditor' : 'JSONEditor' ,
24+ 'vue' : 'Vue' ,
25+ 'vue-demi' : 'VueDemi' ,
2426 } ,
2527 } ,
2628 } ,
You can’t perform that action at this time.
0 commit comments