Skip to content

Commit

Permalink
chore: fix copy-build-to-dist script on Windows (#6518)
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish authored Jun 2, 2023
1 parent 9506d0f commit 70cc627
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/copy-build-to-dist.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 70cc627

Please sign in to comment.