Compare commits

...
2 Commits
Author SHA1 Message Date
Robby RussellandCopilot Autofix powered by AI 0bcac0d11f Change package.json check from executable to readable
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-09-05 15:36:19 -07:00
Robby RussellandCopilot Autofix powered by AI e2be8df511 Replace command with direct shopify call for theme list
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-09-05 15:35:50 -07:00
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -44,8 +44,7 @@ _shopify_themes() {
if (( $#fresh )); then
themes=("${(@f)$(< "$cache_file")}")
else
json="$(command shopify theme list --json 2>/dev/null)" || return 1
# One chunk per object, in zsh, so there is no dependency on jq.
json="$(shopify theme list --json 2>/dev/null)" || return 1
split="${json//\{/$nl}"
for entry in ${(f)split}; do
id="" name="" role=""
+1 -2
View File
@@ -30,8 +30,7 @@ function _shopify_project_type() {
while [[ -n "$dir" && "$dir" != "/" && "$dir" != "$HOME" ]]; do
if [[ -x "$dir/node_modules/.bin/h2" ]] ||
[[ -f "$dir/package.json" && "$(<"$dir/package.json")" == *'"@shopify/hydrogen"'* ]]; then
print -r -- hydrogen
[[ -r "$dir/package.json" && "$(<"$dir/package.json")" == *'"@shopify/hydrogen"'* ]]; then
return 0
fi