From b5a174b9bb9bd0613556632502961d21da2fe932 Mon Sep 17 00:00:00 2001 From: typicode Date: Mon, 15 Jul 2024 17:29:12 +0200 Subject: [PATCH] update messages --- bin.js | 2 +- husky | 2 +- index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin.js b/bin.js index 01db446c7..40d28590c 100755 --- a/bin.js +++ b/bin.js @@ -19,7 +19,7 @@ if (a == 'init') { p.exit() } -d = c => console.error(`${c} command is deprecated`) +d = c => console.error(`${c} command is DEPRECATED`) if (['add', 'set', 'uninstall'].includes(a)) { d(a); p.exit(1) } if (a == 'install') d(a) diff --git a/husky b/husky index 66bcdebfb..8edf346db 100644 --- a/husky +++ b/husky @@ -7,7 +7,7 @@ s=$(dirname "$(dirname "$0")")/$n [ ! -f "$s" ] && exit 0 if [ -f "$HOME/.huskyrc" ]; then - echo "husky - DEPRECATED: '~/.huskyrc' is deprecated, please move your code to ~/.config/husky/init.sh" + echo "husky - '~/.huskyrc' is DEPRECATED, please move your code to ~/.config/husky/init.sh" fi i="${XDG_CONFIG_HOME:-$HOME/.config}/husky/init.sh" [ -f "$i" ] && . "$i" diff --git a/index.js b/index.js index 3bc00ade7..00babd058 100644 --- a/index.js +++ b/index.js @@ -18,6 +18,6 @@ export default (d = '.husky') => { w(_('.gitignore'), '*') f.copyFileSync(new URL('husky', import.meta.url), _('h')) l.forEach(h => w(_(h), `#!/usr/bin/env sh\n. "\${0%/*}/h"`, { mode: 0o755 })) - w(_('husky.sh'), 'echo "husky - DEPRECATED `#!/usr/bin/env sh` and `. "$(dirname -- "$0")/_/husky.sh"` lines in hooks are deprecated, you can remove them safely for even simpler scripts"') + w(_('husky.sh'), 'echo "husky - `#!/usr/bin/env sh` and `. "$(dirname -- "$0")/_/husky.sh"` lines in hooks are DEPRECATED and won\'t be supported in v10. You can remove these two lines safely for even simpler scripts"') return '' } \ No newline at end of file