RepoJournal
Shopify

Shopify

Hydrogen, Polaris, and the CLI - the dev platform behind millions of stores

Keep up with Shopify in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: JavaScript Full archive →

The Wire · Showcase

SHOPIFY CLI TIGHTENS BUNDLE GUARDS AND FIXES UPGRADE CHAOS ON WINDOWS

By RepoJournal · Filed · About Shopify

The CLI now prevents silent uploads of oversized and out-of-app assets that were silently ballooning bundles to gigabytes, while fixing a critical path normalization bug breaking Windows auto-upgrades.

Shopify CLI shipped a critical guardrail today [1] that stops the bundle upload pipeline from accepting asset paths pointing outside your app folder or exceeding reasonable size limits. Until now, a developer could accidentally point to their entire home directory with source = "../../" and watch a 2GB bundle silently upload to GCS without warning. This follows a Slack thread in #app-management where the scope of the problem became clear: there were zero safeguards on what got zipped and shipped.

On the Windows front, the CLI's auto-upgrade detection broke because path comparisons were failing silently [2]. The project root was normalized to forward slashes by the path library, but process.argv[1] arrives as OS-native backslash paths on Windows, so the startsWith check always missed. This meant users were stuck on old versions and couldn't upgrade automatically.

The CLI also fixed package manager detection for bun users [3]. When bun installs a global binary as a symlink out of ~/.bun, the path detection fell through to npm and tried to upgrade via npm instead of bun, breaking the flow for an entire installation method. The fix now inspects both the resolved real path and the unresolved symlink to catch bun correctly.

Two changesets landed to clean up the analytics override surface area [4] [5], removing analyticsNameOverride from the app generate extension command as part of broader API cleanup.

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] Guard CLI bundle upload against oversized and out-of-app paths ↗ Shopify/cli
  2. [2] Fix Windows auto-upgrade for local CLI installs Shopify/cli
  3. [3] Use bun for autoupgrade when CLI installed via bun add -g Shopify/cli
  4. [4] Drop changeset Shopify/cli
  5. [5] Merge pull request #7536 from Shopify/fonso/drop-generate-extension-analytics-override Shopify/cli

Quick answers

What shipped in Shopify on May 16, 2026?
The CLI now prevents silent uploads of oversized and out-of-app assets that were silently ballooning bundles to gigabytes, while fixing a critical path normalization bug breaking Windows auto-upgrades. In total, 13 commits and 7 pull requests landed.
Who contributed to Shopify on May 16, 2026?
1 developer shipped this update, including isaacroldan.
What were the notable Shopify updates?
Guard CLI bundle upload against oversized and out-of-app paths, Fix Windows auto-upgrade for local CLI installs, and Use bun for autoupgrade when CLI installed via bun add -g.

More from Shopify

Daily updates, in your inbox

Follow Shopify

Keep up with Shopify in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?