DEV Community

Discussion on: How to Create and Publish a React Component Library

 
orahul1 profile image
Rahul Raveendran • Edited

I think we can also add files to exclude in the tsconfig.json file

{
  "compilerOptions": {
  },
  "exclude": [
    "src/stories",
    "**/*.stories.tsx"
  ]
}
Enter fullscreen mode Exit fullscreen mode

I don't know which one is better. This solution also worked for me

Some comments have been hidden by the post's author - find out more