File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " json-editor-vue" ,
33 "PascalCasedName" : " JsonEditorVue" ,
4- "version" : " 0.10.12 " ,
4+ "version" : " 0.10.13 " ,
55 "private" : false ,
66 "description" : " JSON editor & viewer for Vue 2.6/2.7/3 & Nuxt 2/3." ,
77 "author" : " Cloyd Lau" ,
Original file line number Diff line number Diff line change 11import process from 'node:process'
22import spawn from 'cross-spawn'
33
4- console . log ( 123 , process . env . INIT_CWD )
5- console . log ( 456 , process . cwd ( ) )
6-
74// simple-git-hooks might not be installed when installing json-editor-vue as a dependency
8- if ( process . env . INIT_CWD ! == process . cwd ( ) ) {
9- process . exit ( )
5+ if ( process . env . INIT_CWD = == process . cwd ( ) ) {
6+ spawn . sync ( 'npx' , [ 'simple-git-hooks' ] , { stdio : 'inherit' } )
107}
11-
12- spawn . sync ( 'npx' , [ 'simple-git-hooks' ] , { stdio : 'inherit' } )
You can’t perform that action at this time.
0 commit comments