From 044430c438eb6f0bb5afa6f05864233b8c8b58d2 Mon Sep 17 00:00:00 2001 From: Ryan Atkinson Date: Sat, 12 Oct 2024 10:11:53 -0600 Subject: [PATCH] fix `gro_plugin_moss` banner --- .changeset/heavy-walls-rest.md | 5 +++++ src/lib/gro_plugin_moss.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/heavy-walls-rest.md diff --git a/.changeset/heavy-walls-rest.md b/.changeset/heavy-walls-rest.md new file mode 100644 index 00000000..53f53f3d --- /dev/null +++ b/.changeset/heavy-walls-rest.md @@ -0,0 +1,5 @@ +--- +'@ryanatkn/moss': patch +--- + +fix `gro_plugin_moss` banner diff --git a/src/lib/gro_plugin_moss.ts b/src/lib/gro_plugin_moss.ts index cd5f1069..9c5bc868 100644 --- a/src/lib/gro_plugin_moss.ts +++ b/src/lib/gro_plugin_moss.ts @@ -71,7 +71,7 @@ export const gro_plugin_moss = ({ const flush_gen_queue = throttle( async () => { const css = generate_classes_css(css_classes.get_sorted_array()); - const contents = `/* ${banner} */\n\n${css}\n\n/* ${banner} */n`; + const contents = `/* ${banner} */\n\n${css}\n\n/* ${banner} */`; const output = await format_file(contents, {filepath: outfile}); // TODO think about using gen to implement this, would have some nice benefits like automatic change detection if (output === previous_output) return;