Skip to content

Commit d1aba1f

Browse files
committed
fix: add newline at end of info.json
1 parent 1666ada commit d1aba1f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ async function run() {
5050
`${submodulePath} | Size: ${info.size} | Plugin: ${info.hasPlugin}`
5151
);
5252

53-
fs.promises.writeFile(infoFilePath, JSON.stringify(info, null, " "));
53+
fs.promises.writeFile(
54+
infoFilePath,
55+
`${JSON.stringify(info, null, " ")}\n`
56+
);
5457
}
5558
} catch (error) {
5659
if (error instanceof Error) return core.setFailed(error.message);

0 commit comments

Comments
 (0)