Skip to content

Commit

Permalink
fix: remove existing fields before writing (#2574)
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford authored Jul 22, 2024
1 parent 89a5a9b commit 01aa085
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ async function writeJsonOutput(
// (this way we can install into deno.json without destroying configurations)
try {
const existing = JSON.parse(await fs.readFile(mapFile, "utf8"));
delete existing.imports;
delete existing.scopes;
delete existing.integrity;
map = Object.assign({}, existing, map);
} catch {}

Expand Down

0 comments on commit 01aa085

Please sign in to comment.