Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
add trailing newline
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroShkvorets committed Nov 8, 2024
1 parent f79c964 commit 95b3cc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.2.15",
"version": "0.2.16",
"private": true,
"type": "module",
"scripts": {
Expand Down
9 changes: 2 additions & 7 deletions src/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@ function byCaip2Id(a: Network, b: Network) {
}

function main() {
const [
,
,
networksDir = "registry",
outputDir = "dist",
] = process.argv;
const [, , networksDir = "registry", outputDir = "dist"] = process.argv;

const REGISTRY_ROOT_URL =
process.env.REGISTRY_ROOT_URL ||
Expand All @@ -63,7 +58,7 @@ function main() {
networks: loadNetworks(networksDir).sort(byCaip2Id),
};

const content = JSON.stringify(registry, null, 2);
const content = JSON.stringify(registry, null, 2) + "\n";
fs.mkdirSync(outputDir, { recursive: true });
fs.writeFileSync(path.join(outputDir, filenameLatest), content);
fs.writeFileSync(path.join(outputDir, filenameLatestPatch), content);
Expand Down

0 comments on commit 95b3cc5

Please sign in to comment.