From 17cd8be84e301882050ca75271e98ff9a9695b48 Mon Sep 17 00:00:00 2001 From: "shopify-build-cli[bot]" <145388831+shopify-build-cli[bot]@users.noreply.github.com> Date: Tue, 24 Nov 2026 18:17:57 +0000 Subject: [PATCH] Update from World Published by the World mirror. World-Commit: 1250b1a9e79567c297b257c38ea4ca1254422ca3 --- bin/docs/build-dev-docs.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bin/docs/build-dev-docs.sh b/bin/docs/build-dev-docs.sh index 607370df8b1..4d80cdf032f 100644 --- a/bin/docs/build-dev-docs.sh +++ b/bin/docs/build-dev-docs.sh @@ -6,9 +6,15 @@ pnpm exec generate-docs \ --output ./docs-shopify.dev/generated # Copy generated v2 docs to shopify-dev in the world repo if available: the World tree this -# checkout is in, else the root World tree of a standalone checkout. +# checkout is in, else the root World tree of a standalone checkout. A World tree without the +# shopify-dev zone skips the copy, so it never writes into another tree. WORLD_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || true)" -if [ -z "$WORLD_ROOT" ] || [ ! -d "$WORLD_ROOT/areas/platforms/shopify-dev" ]; then +if [ -n "$WORLD_ROOT" ] && [ -f "$WORLD_ROOT/.meta/manifest.json" ]; then + if [ ! -d "$WORLD_ROOT/areas/platforms/shopify-dev" ]; then + echo "Skipped copying generated_docs_data_v2.json: this World tree has no shopify-dev zone (add it from here with: tec checkout add ../shopify-dev)" + exit 0 + fi +else WORLD_ROOT="$HOME/world/trees/root/src" fi WORLD_DEST="$WORLD_ROOT/areas/platforms/shopify-dev/db/data/docs/templated_apis/shopify_cli"