Skip to content

Commit

Permalink
fix(#75): do not ignore existing non nolyfill overrides (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW authored Jun 26, 2024
1 parent 66039e2 commit 4920a45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/tools/cli/src/lib/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ const transformOldOverrides = (overrides: Record<string, string> | undefined) =>
return Object.entries(overrides).reduce<Record<string, string>>((acc, [key, value]) => {
if (value.startsWith('npm:@nolyfill/') && value.endsWith('@latest')) {
acc[key] = `${value.slice(0, value.lastIndexOf('@latest'))}@${PRIMARY_NOLYFILL_VERSION}`;
} else {
acc[key] = value;
}
return acc;
}, {});
Expand Down

0 comments on commit 4920a45

Please sign in to comment.