From 73692c0918d9ae4528303626f1d5f1c45622893a Mon Sep 17 00:00:00 2001 From: hasundue Date: Wed, 17 Apr 2024 13:50:50 +0900 Subject: [PATCH] fix(lockfile): use `--no-config` to create lock parts This prevents unneccesary `workspace` field from being created. --- lib/lockfile.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/lockfile.ts b/lib/lockfile.ts index 9e66200c..9e976ff6 100644 --- a/lib/lockfile.ts +++ b/lib/lockfile.ts @@ -139,7 +139,14 @@ export async function createLockPart( // Create a lockfile for the dummy module. await using lock = await createTempFile(); const { code, stderr } = await new Deno.Command("deno", { - args: ["cache", "--lock-write", "--lock", lock.path, mod.path], + args: [ + "cache", + "--no-config", + "--lock-write", + "--lock", + lock.path, + mod.path, + ], }).output(); if (code !== 0) { throw new CommandError(new TextDecoder().decode(stderr));