Skip to content

Commit

Permalink
Make the storybook package start up (#628)
Browse files Browse the repository at this point in the history
* Explicitly switch ts-node into commonjs mode, which seems to be required by
  the specific configuration of storybook here
* Disable an eslint issue about not having default exports on the main
  storybook module
  • Loading branch information
ankon committed Sep 3, 2020
1 parent 4b01fe4 commit b31c909
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"reset": "pnpm clean:all; rm pnpm-lock.yaml; pnpm symlink:root; pnpm install;",
"run:prettier": "prettier --ignore-path .eslintignore \"**/*.{js,jsx,ts,tsx,md,mdx,json,html,css,yml,yaml,graphql}\"",
"size": "size-limit",
"storybook": "manypkg run support/storybook storybook",
"storybook": "cross-env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\"}' manypkg run support/storybook storybook",
"symlink:root": "node support/scripts/symlink-root.js",
"test": "jest --verbose",
"test:build": "cross-env TEST_BUILD=true jest --verbose --coverage=false",
Expand Down
1 change: 1 addition & 0 deletions support/storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line import/no-default-export
export default {
stories: ['./stories/*.stories.tsx'],
addons: ['@storybook/addon-actions', '@storybook/addon-links'],
Expand Down

1 comment on commit b31c909

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://remirror.io as production
🚀 Deployed on https://5f5112c05797543e87aba36d--remirror.netlify.app

Please sign in to comment.