diff --git a/services/design-system/cdk.json b/services/design-system/cdk.json index 0716b9d7..d18a5b7d 100644 --- a/services/design-system/cdk.json +++ b/services/design-system/cdk.json @@ -1,5 +1,5 @@ { - "app": "npx ts-node --prefer-ts-exts bin/app.ts", + "app": "storybook build && npx ts-node --prefer-ts-exts bin/app.ts", "watch": { "include": ["src/", "stacks/", "pages/", "components/"], "exclude": ["__tests__", "*.test.ts", "*.e2e-spec.ts"] diff --git a/services/design-system/package.json b/services/design-system/package.json index ce447da0..0f2ccac1 100644 --- a/services/design-system/package.json +++ b/services/design-system/package.json @@ -15,8 +15,7 @@ "deploy": "gh-pages -d build", "storybook": "storybook dev -p 6006 -s public", "dev": "storybook dev -p 6006", - "build": "tsc", - "build:sb": "storybook build", + "build": "tsc && storybook build", "build:all": "rush build -t .", "test": "", "watch": "tsc -w",