Skip to content

Commit 85dd7d4

Browse files
committed
chore: fix formatting and ensure newline at end of file in emoji-related files
1 parent e2cb176 commit 85dd7d4

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

emojis.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1935,4 +1935,4 @@
19351935
"zombie_man": "🧟‍♂️",
19361936
"zombie_woman": "🧟‍♀️",
19371937
"zzz": "💤"
1938-
}
1938+
}

scripts/update-emojis.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ async function run() {
2525
await writeFile("emoji-urls.json", JSON.stringify(emojiUrls, null, 2));
2626

2727
const typesString = `${BANNER}
28-
export type EmojiKey = ${Object.keys(emojiUrls).map((name) => `"${name}"`).join("\n | ")} | (string & {});
28+
export type EmojiKey = ${Object.keys(emojiUrls).map((name) => `"${name}"`).join("\n | ")} | (string & {});
2929
`;
3030

3131
await writeFile("./src/types.ts", typesString);
3232

3333
const constantsString = `${BANNER}
34-
import type { EmojiKey } from "./types";
34+
import type { EmojiKey } from "./types";
3535
36-
export const EMOJI_KEYS = [
37-
${Object.entries(emojiUrls).map(([name]) => `"${name}"`).join(",\n ")}
38-
] as readonly EmojiKey[];
36+
export const EMOJI_KEYS = [
37+
${Object.entries(emojiUrls).map(([name]) => `"${name}"`).join(",\n ")}
38+
] as readonly EmojiKey[];
3939
`;
4040

4141
await writeFile("./src/constants.ts", constantsString);
@@ -85,7 +85,7 @@ async function run() {
8585
emojis[emojiKey] = emojiTestListEntry?.match(EMOJI_REGEX)?.groups?.emoji ?? "";
8686
}
8787

88-
await writeFile("emojis.json", JSON.stringify(emojis, null, 2));
88+
await writeFile("emojis.json", `${JSON.stringify(emojis, null, 2)}\n`);
8989
}
9090

9191
run().catch((err) => {

src/constants.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT EDIT.
22
// RUN `npm run update:emojis` TO UPDATE.
33

4-
import type { EmojiKey } from "./types";
4+
import type { EmojiKey } from "./types";
55

6-
export const EMOJI_KEYS = [
7-
"100",
6+
export const EMOJI_KEYS = [
7+
"100",
88
"1234",
99
"+1",
1010
"-1",
@@ -1940,5 +1940,5 @@
19401940
"zombie_man",
19411941
"zombie_woman",
19421942
"zzz"
1943-
] as readonly EmojiKey[];
1943+
] as readonly EmojiKey[];
19441944

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// THIS FILE IS GENERATED AUTOMATICALLY. DO NOT EDIT.
22
// RUN `npm run update:emojis` TO UPDATE.
33

4-
export type EmojiKey = "100"
4+
export type EmojiKey = "100"
55
| "1234"
66
| "+1"
77
| "-1"

0 commit comments

Comments
 (0)