From 647b2a52fc2342f6468cda10944caccf356f5332 Mon Sep 17 00:00:00 2001 From: Gyeongjae Choi Date: Wed, 23 Sep 2026 10:53:28 +0900 Subject: [PATCH] fix(cli): make sure to sync packages when running the new preview command --- packages/cli/src/pywrangler/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/pywrangler/cli.py b/packages/cli/src/pywrangler/cli.py index a74ca6eb..890e8b28 100644 --- a/packages/cli/src/pywrangler/cli.py +++ b/packages/cli/src/pywrangler/cli.py @@ -68,7 +68,7 @@ def get_command(self, ctx: click.Context, cmd_name: str) -> click.Command: except ValueError: remaining_args = [] - if cmd_name in ["dev", "publish", "deploy", "versions"]: + if cmd_name in {"dev", "publish", "deploy", "versions", "preview"}: sync(force=False) if cmd_name == "dev":