Skip to content

Commit

Permalink
Allow dependency detection to work on devDependencies
Browse files Browse the repository at this point in the history
This is done to unblock the use case of having most of your dependencies as devDependencies, for CLI's that rely on remix to improve install time by pre-bundling the tool.
  • Loading branch information
nimrossum committed Oct 30, 2024
1 parent b70e0fd commit 3bce8bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/remix-dev/cli/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ export async function generateEntry(
}

let pkgJson = await PackageJson.load(rootDirectory);
let deps = pkgJson.content.dependencies ?? {};
let prodDeps = pkgJson.content.dependencies ?? {};
let devDeps = pkgJson.content.devDependencies ?? {};
let deps = {...prodDeps, ...devDeps };

let serverRuntime = deps["@remix-run/deno"]
? "deno"
Expand Down

0 comments on commit 3bce8bc

Please sign in to comment.