From ba8f9077498151b7619e4cf98bad8a5c57f66edd Mon Sep 17 00:00:00 2001 From: Alfonso Noriega Date: Wed, 31 Aug 2022 14:40:52 +0200 Subject: [PATCH 1/2] Fixed executable path to always point to a node file --- packages/app/src/cli/utilities/extensions/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app/src/cli/utilities/extensions/cli.ts b/packages/app/src/cli/utilities/extensions/cli.ts index 9118c11efcd..ea6882d5974 100644 --- a/packages/app/src/cli/utilities/extensions/cli.ts +++ b/packages/app/src/cli/utilities/extensions/cli.ts @@ -57,7 +57,7 @@ export async function nodeExtensionsCLIPath(): Promise { cwd, })) as string } else { - const executablePath = await path.findUp('node_modules/.bin/shopify-cli-extensions', { + const executablePath = await path.findUp('node_modules/@shopify/shopify-cli-extensions/dist/cli.js', { type: 'file', cwd, allowSymlinks: true, From b777c41ecf8944417fb8b9d2a19f0fdc0b96aa7c Mon Sep 17 00:00:00 2001 From: Alfonso Noriega Date: Wed, 31 Aug 2022 15:26:06 +0200 Subject: [PATCH 2/2] Added changeset info --- .changeset/few-zoos-repair.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/few-zoos-repair.md diff --git a/.changeset/few-zoos-repair.md b/.changeset/few-zoos-repair.md new file mode 100644 index 00000000000..0c19f1b2fa4 --- /dev/null +++ b/.changeset/few-zoos-repair.md @@ -0,0 +1,5 @@ +--- +'@shopify/app': minor +--- + +Fixed bug when running CLI on Windows machine. The node executable path is now pointing directly to a node file instead of relying in the node generated files.