diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2022-07-03 20:48:55 -0400 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2022-07-03 20:48:55 -0400 |
commit | 6e0a7765188ef970d738108d11eaecc7b79a5f5e (patch) | |
tree | 01712cef5fe2cc74a8bceb2abc2e54ca2c54aff1 /plugins/npx | |
parent | 901674e84756d64024cdc70f9590c3557c6d92d6 (diff) | |
parent | 4c82a2eedf0c43d47601ffa8b0303ed1326fab8f (diff) | |
download | zsh-6e0a7765188ef970d738108d11eaecc7b79a5f5e.tar.gz zsh-6e0a7765188ef970d738108d11eaecc7b79a5f5e.tar.bz2 zsh-6e0a7765188ef970d738108d11eaecc7b79a5f5e.zip |
Merge remote-tracking branch 'github/master'
Diffstat (limited to 'plugins/npx')
-rw-r--r-- | plugins/npx/README.md | 16 | ||||
-rw-r--r-- | plugins/npx/npx.plugin.zsh | 12 |
2 files changed, 0 insertions, 28 deletions
diff --git a/plugins/npx/README.md b/plugins/npx/README.md deleted file mode 100644 index 4b2aba8f0..000000000 --- a/plugins/npx/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# npx plugin - -## Deprecation - -Since npm v7, `npx` has been moved to `npm exec`. With the move, [the `--shell-auto-fallback` argument -for `npx` has been removed](https://github.com/npm/cli/blob/v7.0.0/docs/content/cli-commands/npm-exec.md#compatibility-with-older-npx-versions): - -> Shell fallback functionality is removed, as it is not advisable. - -When using npm v7, you'll get this error: - -> npx: the --shell-auto-fallback argument has been removed - -If you get this error, just disable the plugin by removing it from the plugins array in your zshrc file. -This plugin will no longer be maintained and will be removed in the future, when the older `npx` versions -are no longer available. diff --git a/plugins/npx/npx.plugin.zsh b/plugins/npx/npx.plugin.zsh deleted file mode 100644 index c1e2eca98..000000000 --- a/plugins/npx/npx.plugin.zsh +++ /dev/null @@ -1,12 +0,0 @@ -if (( ! $+commands[npx] )); then - return -fi - -if ! npx_fallback_script="$(npx --shell-auto-fallback zsh 2>/dev/null)"; then - print -u2 ${(%):-"%F{yellow}This \`npx\` version ($(npx --version)) is not supported.%f"} -else - source <(<<< "$npx_fallback_script") -fi - -print -u2 ${(%):-"%F{yellow}The \`npx\` plugin is deprecated and will be removed soon. %BPlease disable it%b.%f"} -unset npx_fallback_script |