Skip to content

Commit

Permalink
Fix TS build script for old Node versions (#6526)
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett authored Jun 29, 2021
1 parent 187ddfd commit d1e0a1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/types/build-ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ contents = contents.replace(
'Record<string, JSONValue>',
'{[key: string]: JSONValue}',
);
contents = contents.replaceAll('$ReadOnlyMap', 'ReadonlyMap');
contents = contents.replaceAll('$ReadOnlySet', 'ReadonlySet');
contents = contents.replace(/\$ReadOnlyMap/g, 'ReadonlyMap');
contents = contents.replace(/\$ReadOnlySet/g, 'ReadonlySet');

fs.writeFileSync(__dirname + '/lib/index.d.ts', contents);

0 comments on commit d1e0a1a

Please sign in to comment.