Skip to content

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

avivkeller
Copy link
Member

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 the src/ directory (rather than **/*.[...], and explicit excludes).

@Copilot Copilot AI review requested due to automatic review settings July 4, 2025 01:11
@avivkeller avivkeller requested review from a team as code owners July 4, 2025 01:11
Copy link

vercel bot commented Jul 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview Jul 4, 2025 1:20am

This comment was marked as resolved.

Copy link
Contributor

@Copilot Copilot AI left a 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 reference src/
  • 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 only src, .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"]

@avivkeller avivkeller force-pushed the chore/src-directory branch from 9490693 to 7e5556b Compare July 4, 2025 01:13
Copy link

codecov bot commented Jul 4, 2025

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 75.42%. Comparing base (d94cf3e) to head (95a9ce2).

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
packages/i18n/src/index.mjs 75.00% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

Copy link
Member

@AugustinMauroy AugustinMauroy left a comment

Choose a reason for hiding this comment

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

LGMT !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants