fix(create-bot): husky install is deprecated
This commit is contained in:
parent
ff89ce3ddd
commit
8f909ee338
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ if (config.features.includes(MtcuteFeature.Linters)) {
|
||||||
await exec(outDir, 'chmod', '+x', '.husky/pre-commit')
|
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)}`)
|
console.log(`✅ Scaffolded new project at ${colors.blue(outDir)}`)
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
{{#if features.linters}}
|
{{#if features.linters}}
|
||||||
"prepare": "husky install",
|
"prepare": "husky",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"lint:fix": "eslint --fix .",
|
"lint:fix": "eslint --fix .",
|
||||||
"format": "prettier --write \"src/**/*.ts\"",
|
"format": "prettier --write \"src/**/*.ts\"",
|
||||||
|
|
Loading…
Reference in a new issue