Skip to content

Commit

Permalink
release: v0.10.13
Browse files Browse the repository at this point in the history
  • Loading branch information
cloydlau committed Sep 6, 2023
1 parent e2d06b8 commit 30e9cac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "json-editor-vue",
"PascalCasedName": "JsonEditorVue",
"version": "0.10.12",
"version": "0.10.13",
"private": false,
"description": "JSON editor & viewer for Vue 2.6/2.7/3 & Nuxt 2/3.",
"author": "Cloyd Lau",
Expand Down
9 changes: 2 additions & 7 deletions scripts/postinstall.mts
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import process from 'node:process'
import spawn from 'cross-spawn'

console.log(123, process.env.INIT_CWD)
console.log(456, process.cwd())

// simple-git-hooks might not be installed when installing json-editor-vue as a dependency
if (process.env.INIT_CWD !== process.cwd()) {
process.exit()
if (process.env.INIT_CWD === process.cwd()) {
spawn.sync('npx', ['simple-git-hooks'], { stdio: 'inherit' })
}

spawn.sync('npx', ['simple-git-hooks'], { stdio: 'inherit' })

0 comments on commit 30e9cac

Please sign in to comment.