-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
chore: store source files in src/ #7949
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
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This comment was marked as resolved.
This comment was marked as resolved.
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 reorganizes package source layouts by moving all primary code into src/
directories and updating related configurations, exports, and documentation.
- Updates TypeScript and turborepo configs to only include
src/
paths - Adjusts
package.json
exports/imports to referencesrc/
- Revises docs, Stylelint, Crowdin, and CI workflows to use new
src/
paths
Reviewed Changes
Copilot reviewed 12 out of 212 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
packages/ui-components/tsconfig.json | Changed include to only "src" |
packages/ui-components/package.json | Updated exports/imports to "src/*" and removed files list |
packages/ui-components/.stylelintrc.mjs | Pointed plugin path to #ui/stylelint/... |
packages/i18n/turbo.json | Switched lint inputs from lib/**/* to src/**/* |
packages/i18n/tsconfig.json | Changed include to only "src" |
packages/i18n/src/index.mjs | Updated import paths and JSDoc references to ./ |
packages/i18n/package.json | Reconfigured exports, main , and module to src/ |
docs/downloads-page.md | Updated locales path to packages/i18n/src/locales |
docs/creating-components.md | Adjusted example component path to include /src/ |
docs/adding-pages.md | Updated docs references to new src/ locale paths |
crowdin.yml | Changed translation source/target paths to src/ |
.github/workflows/translations-pr-lint.yml | Updated CI lint paths for JSON to src/locales |
Comments suppressed due to low confidence (2)
packages/ui-components/package.json:12
- Removing the "files" array may cause unintended files (e.g., docs, configs, tests) to be published. Consider re-adding a whitelist of distributable files to keep the package bundle lean.
},
packages/ui-components/tsconfig.json:19
- [nitpick] By restricting
include
to onlysrc
,.storybook
TypeScript files are no longer covered by this config. If you still want to type-check Storybook code, consider adding a separate tsconfig or including that directory here.
"include": ["src"]
9490693
to
7e5556b
Compare
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## main #7949 +/- ##
==========================================
+ Coverage 75.40% 75.42% +0.02%
==========================================
Files 96 96
Lines 8354 8354
Branches 219 219
==========================================
+ Hits 6299 6301 +2
+ Misses 2053 2051 -2
Partials 2 2 ☔ View full report in Codecov by Sentry. |
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.
LGMT !
For consistency, we should (IMO) store all the source files of a given package in it's
src/
directory. That should also make it easier to compile with TypeScript, since we only need to include thesrc/
directory (rather than**/*.[...]
, and explicit excludes).