-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: run husky prepare script instead of husky init
- Loading branch information
1 parent
c519b09
commit 4df55be
Showing
2 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { installDevelopmentDependencies } from 'src/utils/npm'; | ||
import { addScripts, installDevelopmentDependencies, runScript } from 'src/utils/npm'; | ||
import { PACKAGE_NAME } from './husky.const'; | ||
import { runCommand } from 'src/utils/run-command'; | ||
|
||
export const husky = async () => { | ||
await installDevelopmentDependencies(PACKAGE_NAME); | ||
await runCommand(`npx ${PACKAGE_NAME} init`); | ||
await addScripts({ name: 'prepare', script: PACKAGE_NAME }); | ||
await runScript('prepare'); | ||
}; |