Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

a11y job: emit the affected-story list on one line (#7196)

Reece Browne4dc0927104dc
diff --git a/frontend/.storybook/a11y-changed.mjs b/frontend/.storybook/a11y-changed.mjs
index 6aacf6274c..5ff7a9e633 100644
--- a/frontend/.storybook/a11y-changed.mjs
+++ b/frontend/.storybook/a11y-changed.mjs
@@ -45,4 +45,12 @@ for (const f of changed) {
if (existsSync(s)) stories.add(s);
}
-process.stdout.write([...stories].sort().join("\n"));
+// One line, each path quoted: the output is interpolated into a task command,
+// where a newline would end the command after the first story and an unquoted
+// space would split a path into two arguments.
+process.stdout.write(
+ [...stories]
+ .sort()
+ .map((s) => `"${s}"`)
+ .join(" "),
+);