Skip to content

Commit 55a87d9

Browse files
SarthakWadeyashranaway
authored andcommitted
fix(sdk): normalize generated file ending
1 parent 9748504 commit 55a87d9

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

packages/headless-npm/scripts/generate-sdk.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ lines.push(
262262
emitMethods(schema.commands.filter((command) => command.scope === "session"));
263263
lines.push("}", "");
264264

265-
const output = `${lines.join("\n")}\n`;
265+
const output = lines.join("\n");
266266
if (process.argv.includes("--check")) {
267267
const existing = await readFile(outputPath, "utf8").catch(() => "");
268268
if (existing !== output) throw new Error("generated SDK declarations are stale; run npm run generate");

packages/headless-npm/src/generated.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3406,4 +3406,3 @@ export abstract class GeneratedSessionCommandClient {
34063406
}
34073407

34083408
}
3409-

0 commit comments

Comments
 (0)