From 70cc6278c27b4e170f68f27f747618c0ce77c848 Mon Sep 17 00:00:00 2001 From: Mark Dalgleish Date: Fri, 2 Jun 2023 11:06:20 +1000 Subject: [PATCH] chore: fix copy-build-to-dist script on Windows (#6518) --- scripts/copy-build-to-dist.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/copy-build-to-dist.mjs b/scripts/copy-build-to-dist.mjs index 1b0bcb8e523..4b9e4cb274d 100644 --- a/scripts/copy-build-to-dist.mjs +++ b/scripts/copy-build-to-dist.mjs @@ -141,9 +141,9 @@ async function getPackageBuildPaths(moduleRootDir) { if (path.basename(moduleDir) === "@remix-run") { packageBuilds.push(...(await getPackageBuildPaths(moduleDir))); } else if ( - /node_modules\/@remix-run\//.test(moduleDir) || - /node_modules\/create-remix/.test(moduleDir) || - /node_modules\/remix/.test(moduleDir) + /node_modules[/\\]@remix-run[/\\]/.test(moduleDir) || + /node_modules[/\\]create-remix/.test(moduleDir) || + /node_modules[/\\]remix/.test(moduleDir) ) { packageBuilds.push(moduleDir); }