prototypey.org - atproto lexicon typescript toolkit - mirror https://github.com/tylersayshi/prototypey
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

emit newline after gen emit (#98)

* emit newline after gen emit

* changeset

authored by

Tyler Lawson and committed by
GitHub
1d1eeb7d fe03ee32

+10 -1
+5
.changeset/chubby-queens-wear.md
··· 1 + --- 2 + "prototypey": patch 3 + --- 4 + 5 + emit newline after gen emit
+1 -1
packages/prototypey/cli/gen-emit.ts
··· 93 93 // Write the JSON file 94 94 await writeFile( 95 95 outputPath, 96 - JSON.stringify(lexicon.json, null, "\t"), 96 + JSON.stringify(lexicon.json, null, "\t") + "\n", 97 97 "utf-8", 98 98 ); 99 99
+4
packages/prototypey/cli/tests/gen-emit.test.ts
··· 48 48 // Read the emitted JSON file 49 49 const outputFile = join(outDir, "app", "bsky", "actor", "profile.json"); 50 50 const content = await readFile(outputFile, "utf-8"); 51 + 52 + // Verify the file ends with a trailing newline (POSIX-compliant) 53 + expect(content.endsWith("\n")).toBe(true); 54 + 51 55 const json = JSON.parse(content); 52 56 53 57 // Verify the structure