const lock = JSON.parse(Deno.readTextFileSync("./deno.lock")); const pkg = lock.npm["@denotest/esm-basic@1.0.0"]; // Corrupt the integrity hash pkg.integrity = pkg.integrity.slice(0, -1); Deno.writeTextFileSync("./deno.lock", JSON.stringify(lock));