Skip to content

Commit b5a174b

Browse files
committed
update messages
1 parent d748eb6 commit b5a174b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (a == 'init') {
1919
p.exit()
2020
}
2121

22-
d = c => console.error(`${c} command is deprecated`)
22+
d = c => console.error(`${c} command is DEPRECATED`)
2323
if (['add', 'set', 'uninstall'].includes(a)) { d(a); p.exit(1) }
2424
if (a == 'install') d(a)
2525

husky

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ s=$(dirname "$(dirname "$0")")/$n
77
[ ! -f "$s" ] && exit 0
88

99
if [ -f "$HOME/.huskyrc" ]; then
10-
echo "husky - DEPRECATED: '~/.huskyrc' is deprecated, please move your code to ~/.config/husky/init.sh"
10+
echo "husky - '~/.huskyrc' is DEPRECATED, please move your code to ~/.config/husky/init.sh"
1111
fi
1212
i="${XDG_CONFIG_HOME:-$HOME/.config}/husky/init.sh"
1313
[ -f "$i" ] && . "$i"

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ export default (d = '.husky') => {
1818
w(_('.gitignore'), '*')
1919
f.copyFileSync(new URL('husky', import.meta.url), _('h'))
2020
l.forEach(h => w(_(h), `#!/usr/bin/env sh\n. "\${0%/*}/h"`, { mode: 0o755 }))
21-
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"')
21+
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"')
2222
return ''
2323
}

0 commit comments

Comments
 (0)