From d3c0988410e4de21391a553289db487291329dde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B8ssum?= <1959615+joglr@users.noreply.github.com> Date: Mon, 28 Oct 2024 10:34:53 +0100 Subject: [PATCH 1/2] Allow dependency detection to work on devDependencies 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. --- packages/remix-dev/cli/commands.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/remix-dev/cli/commands.ts b/packages/remix-dev/cli/commands.ts index 82406b1b6b4..07178a64478 100644 --- a/packages/remix-dev/cli/commands.ts +++ b/packages/remix-dev/cli/commands.ts @@ -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" From cb025115a6276bff2af515ee87ef592f4f26a50c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B8ssum?= <1959615+joglr@users.noreply.github.com> Date: Mon, 28 Oct 2024 10:38:12 +0100 Subject: [PATCH 2/2] Update contributors.yml --- contributors.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/contributors.yml b/contributors.yml index c11fb3b3030..8a8ac74c7a4 100644 --- a/contributors.yml +++ b/contributors.yml @@ -723,3 +723,4 @@ - zayenz - zhe - zwhitchcox +- joglr