Skip to content

Commit

Permalink
fix: update for husky 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Rickard Natt och Dag committed Mar 31, 2021
1 parent 06dc0ca commit 6ad1643
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 7 additions & 2 deletions src/commands/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,15 @@ pub fn husky() -> Result<()> {

node::install_dev("husky pretty-quick");

template::render_file(include_str!("../templates/.huskyrc"), ".huskyrc", None)?;

spinner.success("Husky setup complete");

println!(
"
* {cmd} - Initialize husky
",
cmd = "npx husky-init".blue(),
);

Ok(())
}

Expand Down
6 changes: 0 additions & 6 deletions src/templates/.huskyrc

This file was deleted.

0 comments on commit 6ad1643

Please sign in to comment.