Skip to content

Commit

Permalink
fix(lockfile): use --no-config to create lock parts
Browse files Browse the repository at this point in the history
This prevents unneccesary `workspace` field from being created.
  • Loading branch information
hasundue committed Apr 19, 2024
1 parent bb7cea6 commit 73692c0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/lockfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 73692c0

Please sign in to comment.