-
Notifications
You must be signed in to change notification settings - Fork 598
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix: npm ignore __tests__ & stories #1161
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/primer/primer-components/5iKn8hDHSZGDVeDF7UCQHFTesfR6 |
Thanks for the PR, @andykenward ❤️ Could you elaborate on what you mean by "dist:types is generating type definitions for the same folders"? |
Ah, I see. We do want to type check the tests and the stories but we ignore those files when publishing to npm: https://github.com/primer/components/blob/3af005c6ec7d0900cc46728d5c725887bf7ba57c/package.json#L41-L42 |
Perhaps also add the compiled "!lib/stories",
"!lib-esm/stories" |
@andykenward Great idea! |
When compiling `dist:transpile:cjs` or `dist:transpile:esm` the folders `__tests__` & `stories` were included.
@colebemis Sorry in the delay in this pull request. I've made the discussed changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
When compiling
dist:transpile:cjs
ordist:transpile:esm
babel is including the folders__tests__
&stories
in the output. But we don't want to publish those files to npm. Adding those folders to ignore in thepackage.json
files
array should solve this.