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 authored and Woodpile37 committed Jan 14, 2024
1 parent 98ee03a commit 468e04c
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 468e04c

Please sign in to comment.