@k-leumas/queque-cli 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.2.7",
6
+ "version": "0.2.8",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/k-leumas/queque.git"
@@ -227,7 +227,15 @@ JSON
227
227
  if [[ -n "${QQ_DEV_ROOT:-}" && -f "${QQ_DEV_ROOT}/dist/cli/main.js" ]]; then
228
228
  qq_cmd=("node" "${QQ_DEV_ROOT}/dist/cli/main.js")
229
229
  else
230
- qq_cmd=("qq")
230
+ # whence -p searches PATH only, bypassing shell functions — prevents the dev
231
+ # qq() function from shadowing the installed Homebrew binary.
232
+ local _qq_bin
233
+ _qq_bin=$(whence -p qq 2>/dev/null)
234
+ if [[ -z "$_qq_bin" ]]; then
235
+ zle -M "queque: qq not found — run: qq init zsh >> ~/.zshrc && source ~/.zshrc"
236
+ return 0
237
+ fi
238
+ qq_cmd=("$_qq_bin")
231
239
  fi
232
240
  _qq_log "qq_cmd=${qq_cmd[*]}"
233
241