From 5800f952ddf46acb8ff58f825480d3f40e05b030 Mon Sep 17 00:00:00 2001 From: Birk Skyum Date: Thu, 31 Oct 2024 22:50:09 +0100 Subject: [PATCH 1/2] Add deno support for solid cli --- packages/utils/src/package-manager/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/utils/src/package-manager/index.ts b/packages/utils/src/package-manager/index.ts index 7b3d934..88ecdd3 100644 --- a/packages/utils/src/package-manager/index.ts +++ b/packages/utils/src/package-manager/index.ts @@ -31,6 +31,15 @@ export const detectPackageManager = (): PackageManager => { return s; }, }; + case userAgent.startsWith("deno"): + return { + name: "deno", + runner: "deno run", + installCommand: "add", + runScriptCommand(s) { + return s; + }, + }; default: return { name: "npm", From f50292b3a4660e386e358fbdc2d7f96306b15812 Mon Sep 17 00:00:00 2001 From: Birk Skyum Date: Fri, 1 Nov 2024 19:47:18 +0100 Subject: [PATCH 2/2] add task --- packages/utils/src/package-manager/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/utils/src/package-manager/index.ts b/packages/utils/src/package-manager/index.ts index 88ecdd3..a1720e5 100644 --- a/packages/utils/src/package-manager/index.ts +++ b/packages/utils/src/package-manager/index.ts @@ -37,7 +37,7 @@ export const detectPackageManager = (): PackageManager => { runner: "deno run", installCommand: "add", runScriptCommand(s) { - return s; + return `task ${s}`; }, }; default: