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 1
1
{
2
2
"name" : " json-editor-vue" ,
3
+ "pascalCasedName" : " JsonEditorVue" ,
3
4
"version" : " 0.9.2" ,
4
5
"private" : false ,
5
6
"packageManager" : " pnpm@latest" ,
Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ import type { PropType } from 'vue-demi'
13
13
import { JSONEditor } from 'vanilla-jsoneditor'
14
14
import { conclude } from 'vue-global-config'
15
15
import { debounce } from 'lodash-es'
16
+ import { pascalCasedName as name } from '../package.json'
16
17
import { globalAttrs , globalProps } from './index'
17
18
18
19
export type Mode = 'tree' | 'text'
19
20
20
- const name = 'JsonEditorVue'
21
21
const modelValueProp = isVue3 ? 'modelValue' : 'value'
22
22
const updateModelValue = isVue3 ? 'update:modelValue' : 'input'
23
23
const boolAttrs = [
@@ -166,5 +166,3 @@ export default defineComponent({
166
166
return ( ) => h ( 'div' , { ref : 'jsonEditorRef' } )
167
167
} ,
168
168
} )
169
-
170
- export { name }
Original file line number Diff line number Diff line change 1
1
import type { ConfigEnv , UserConfigExport } from 'vite'
2
2
import 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'
5
4
6
5
// https://vitejs.dev/config/
7
6
export default ( { command } : ConfigEnv ) : UserConfigExport => {
@@ -20,7 +19,10 @@ export default ({ command }: ConfigEnv): UserConfigExport => {
20
19
] ,
21
20
output : {
22
21
globals : {
23
- [ name ] : globalVariableName ,
22
+ [ name ] : pascalCasedName ,
23
+ 'vanilla-jsoneditor' : 'JSONEditor' ,
24
+ 'vue' : 'Vue' ,
25
+ 'vue-demi' : 'VueDemi' ,
24
26
} ,
25
27
} ,
26
28
} ,
You can’t perform that action at this time.
0 commit comments