fix: prevent "command not found" error for husky
Check for husky existence before running prepare script.
This commit is contained in:
parent
d7439dce05
commit
9f2574e32d
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@
|
|||
"typescript-eslint": "^8.46.3"
|
||||
},
|
||||
"scripts": {
|
||||
"prepare": "husky || true",
|
||||
"prepare": "node -e \"try { require.resolve('husky') } catch(e) { process.exit(0) }; require('child_process').execSync('husky', {stdio: 'inherit'})\"",
|
||||
"dev": "turbo run dev",
|
||||
"build": "turbo run build",
|
||||
"test": "turbo run test",
|
||||
|
|
|
|||
Loading…
Reference in a new issue