-
Notifications
You must be signed in to change notification settings - Fork 630
fix(styled-react): update types output #6649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 9085989 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
Pull Request Overview
This PR fixes TypeScript type generation for the @primer/styled-react
package and adds npm package linting to prevent similar issues in the future. The main issue was that types were not being emitted to the correct location in the dist folder due to test files being included in the TypeScript compilation.
- Update TypeScript build configuration to exclude test files and config directories from type generation
- Add
publint
tool for npm package validation with a newlint:npm
task - Integrate npm package linting into the CI pipeline
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
turbo.json |
Adds new lint:npm task configuration to the build pipeline |
packages/styled-react/tsconfig.build.json |
Excludes test files and config directories from TypeScript compilation |
packages/styled-react/package.json |
Adds lint:npm script and publint dependency |
.github/workflows/ci.yml |
Integrates npm package linting into CI workflow |
.changeset/salty-geese-own.md |
Documents the patch release for the styled-react package |
Co-authored-by: Copilot <[email protected]>
size-limit report 📦
|
Co-authored-by: Copilot <[email protected]>
Closes #6643
Update the
tsconfig.build.json
exclude list so that our types are generated in the correct location for@primer/styled-react
. This also adds a new task,lint:npm
, to hopefully avoid these types of issues with publishing in the future 😅Changelog
New
lint:npm
task to turbo and topackages/styled-react
tsconfig.build.json
so types are emitted to correct paths indist
folderChanged
Removed
Rollout strategy