Skip to content

chore(ui): don't depend on pnpm syntax #7771

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 1 commit into
base: main
Choose a base branch
from
Open

Conversation

avivkeller
Copy link
Member

When we import @node-core/ui-components from api-docs-tooling, it can't contain non-npm syntax in it's package.json. Therefore, this PR removes the dependency on the workspace:* syntax.

@Copilot Copilot AI review requested due to automatic review settings May 21, 2025 21:24
@avivkeller avivkeller requested a review from a team as a code owner May 21, 2025 21:24
Copy link

vercel bot commented May 21, 2025

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

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview May 21, 2025 9:33pm

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 removes the non-npm workspace:* dependency and inlines the SimpleLocaleConfig type to eliminate reliance on an external interface.

  • Inline SimpleLocaleConfig instead of using Pick<LocaleConfig> and drop the LocaleConfig import
  • Remove "@node-core/website-i18n": "workspace:*" from devDependencies

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/ui-components/types.ts Inlined SimpleLocaleConfig properties and removed external import
packages/ui-components/package.json Deleted workspace syntax for @node-core/website-i18n
Comments suppressed due to low confidence (2)

packages/ui-components/package.json:50

  • [nitpick] Since the workspace:* syntax was removed, pin @node-core/website-i18n to a fixed npm version (e.g., ^1.2.3) so consumers get a predictable release instead of missing the dependency entirely.
"@node-core/website-i18n": "workspace:*",

packages/ui-components/types.ts:21

  • [nitpick] Consider adding a JSDoc comment to SimpleLocaleConfig explaining its shape and reminding maintainers to sync it with the upstream LocaleConfig interface to avoid divergence over time.
export type SimpleLocaleConfig = {

@codecov-commenter
Copy link

codecov-commenter commented May 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.36%. Comparing base (87b1016) to head (40fd13c).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7771      +/-   ##
==========================================
+ Coverage   75.34%   75.36%   +0.01%     
==========================================
  Files          96       96              
  Lines        7858     7858              
  Branches      192      192              
==========================================
+ Hits         5921     5922       +1     
+ Misses       1936     1935       -1     
  Partials        1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

github-actions bot commented May 22, 2025

Lighthouse Results

URL Performance Accessibility Best Practices SEO Report
/en 🟢 99 🟢 100 🟢 100 🟢 91 🔗
/en/about 🟢 100 🟢 100 🟢 100 🟠 82 🔗
/en/about/previous-releases 🟢 97 🟢 100 🟢 100 🟠 83 🔗
/en/download 🟢 98 🟢 100 🟢 100 🟢 91 🔗
/en/blog 🟢 100 🟢 100 🟢 96 🟢 92 🔗

Copy link
Collaborator

@bmuenzenmeyer bmuenzenmeyer left a comment

Choose a reason for hiding this comment

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

sometimes DRYness is the enemy

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.

5 participants