From 382536168b05b35338f7d6e2042e32e8f168e409 Mon Sep 17 00:00:00 2001 From: Ninosaurier Date: Wed, 12 Aug 2026 12:30:48 +0200 Subject: [PATCH] build(scripts): add root-level pnpm run storybook script Adds a storybook script to the root package.json that filters into the luna-charts package, so Storybook can be launched directly from the repository root instead of requiring a manual cd into packages/luna-charts. Updates README.md to document the new command as part of the standard developer workflow. Closes #11. --- README.md | 1 + package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index aca884b..c37b640 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,7 @@ pnpm install | `pnpm run lint` | Run the linter to check for code style and quality issues | | `pnpm run format` | Run the formatter to automatically fix code style issues | | `pnpm run test:browser` | Run browser tests (only works inside the `packages/luna-charts` directory) | +| `pnpm run storybook` | Start the storybook documentation | ### Storybook diff --git a/package.json b/package.json index 11d0c23..d95634d 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "changeset": "changeset", "version": "changeset version", "release": "changeset publish", + "storybook": "pnpm --filter luna-charts run storybook", "test:unit": "pnpm --filter luna-charts test:unit", "test:component": "docker compose -f docker-compose.test.yaml up --build --abort-on-container-exit --exit-code-from test", "test": "pnpm test:unit && pnpm test:component" -- 2.54.0