From 6ad164329511ab41ea1108c0d509488ede0e0b1c Mon Sep 17 00:00:00 2001 From: Rickard Natt och Dag Date: Wed, 31 Mar 2021 16:25:01 +0200 Subject: [PATCH] fix: update for husky 6 --- src/commands/add.rs | 9 +++++++-- src/templates/.huskyrc | 6 ------ 2 files changed, 7 insertions(+), 8 deletions(-) delete mode 100644 src/templates/.huskyrc diff --git a/src/commands/add.rs b/src/commands/add.rs index db1c6ca..e353494 100644 --- a/src/commands/add.rs +++ b/src/commands/add.rs @@ -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(()) } diff --git a/src/templates/.huskyrc b/src/templates/.huskyrc deleted file mode 100644 index 1cbd863..0000000 --- a/src/templates/.huskyrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "hooks": { - "pre-commit": "pretty-quick --staged" - } -} -