fix(create-bot): husky install is deprecated

This commit is contained in:
alina 🌸 2024-03-17 19:50:24 +03:00
parent ff89ce3ddd
commit 8f909ee338
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ if (config.features.includes(MtcuteFeature.Linters)) {
await exec(outDir, 'chmod', '+x', '.husky/pre-commit')
}
await exec(outDir, ...getExecCommand(config.packageManager, 'husky', 'install'))
await exec(outDir, ...getExecCommand(config.packageManager, 'husky'))
}
console.log(`✅ Scaffolded new project at ${colors.blue(outDir)}`)

View file

@ -10,7 +10,7 @@
"type": "module",
"scripts": {
{{#if features.linters}}
"prepare": "husky install",
"prepare": "husky",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"format": "prettier --write \"src/**/*.ts\"",