From 78cbc67c26d558a1021e0ac1da234ff86e394818 Mon Sep 17 00:00:00 2001 From: Jeff Charles Date: Tue, 3 Dec 2024 12:40:48 -0500 Subject: [PATCH] Download Javy plugin with Javy binary --- .changeset/shy-steaks-lay.md | 5 +++++ packages/app/src/cli/services/function/build.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/shy-steaks-lay.md diff --git a/.changeset/shy-steaks-lay.md b/.changeset/shy-steaks-lay.md new file mode 100644 index 00000000000..dfe5d821f35 --- /dev/null +++ b/.changeset/shy-steaks-lay.md @@ -0,0 +1,5 @@ +--- +'@shopify/app': patch +--- + +Download Javy plugin ahead of time with Javy CLI diff --git a/packages/app/src/cli/services/function/build.ts b/packages/app/src/cli/services/function/build.ts index 59179aeaca7..4990f85393d 100644 --- a/packages/app/src/cli/services/function/build.ts +++ b/packages/app/src/cli/services/function/build.ts @@ -198,7 +198,8 @@ export async function installJavy(app: AppInterface) { const javyRequired = app.allExtensions.some((ext) => ext.features.includes('function') && ext.isJavaScript) if (javyRequired) { const javy = javyBinary() - await downloadBinary(javy) + const plugin = javyPluginBinary() + await Promise.all([downloadBinary(javy), downloadBinary(plugin)]) } }