From b44aac4ac9548d420a525205c3282890021a402f Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Fri, 5 Jul 2024 16:11:50 +0200 Subject: [PATCH] WIP --- src/pkg_manager.ts | 5 +++++ test/commands.test.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pkg_manager.ts b/src/pkg_manager.ts index 7580ebf..27e9382 100644 --- a/src/pkg_manager.ts +++ b/src/pkg_manager.ts @@ -87,6 +87,11 @@ class Yarn implements PackageManager { args.push(mode); } args.push(...toPackageArgs(packages)); + console.log(args); + const fs = await import("node:fs"); + const dir = fs.readdirSync(this.cwd); + console.log(dir); + await execWithLog("yarn", ["exec", "env"], this.cwd); await execWithLog("yarn", args, this.cwd); } diff --git a/test/commands.test.ts b/test/commands.test.ts index 3f2b58e..99ce53d 100644 --- a/test/commands.test.ts +++ b/test/commands.test.ts @@ -377,7 +377,7 @@ describe("install", () => { ); }); - it("jsr add --yarn @std/encoding@0.216.0 - forces yarn", async () => { + it.only("jsr add --yarn @std/encoding@0.216.0 - forces yarn", async () => { await withTempEnv( ["i", "--yarn", "@std/encoding@0.216.0"], async (dir) => {