Skip to content

Commit

Permalink
fix: fix schema generator in node v14
Browse files Browse the repository at this point in the history
  • Loading branch information
Coobaha committed Feb 25, 2021
1 parent 416fc79 commit 391d59d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default async (params: { files: string[] }) => {
},
null,
2,
).replaceAll(PLACEHOLDER_ID, name);
).replace(new RegExp(escapeRegexp(PLACEHOLDER_ID), 'gmi'), name);
if (existing !== newContents) {
await fs.writeFile(saved, newContents, { encoding: 'utf8', flag: 'w' });
}
Expand Down

0 comments on commit 391d59d

Please sign in to comment.