Skip to content

Commit

Permalink
docs: added jsdocs to update-version generated output
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Feb 14, 2023
1 parent 83957dc commit 557c7d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src.ts/_admin/update-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ async function getNpmPackage(name: string): Promise<any> {

return cache[name] || null;
}

function writeVersion(version: string): void {
const content = `export const version: string = "${ version }";\n`;
const content = `/* Do NOT modify this file; see /src.ts/_admin/update-version.ts */\n\n/**\n * The current version of Ethers.\n */\nexport const version: string = "${ version }";\n`;
atomicWrite(resolve("src.ts/_version.ts"), content);
}

Expand Down

0 comments on commit 557c7d4

Please sign in to comment.