Skip to content

fix(nuxi): fix parsing bug for .npmrc files with comments #881

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 4 commits into
base: main
Choose a base branch
from

Conversation

odanado
Copy link

@odanado odanado commented May 15, 2025

πŸ”— Linked issue

resolves #880

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

I have fixed a bug where parsing the registry URL fails when .npmrc contains comments.

@odanado odanado requested a review from danielroe as a code owner May 15, 2025 18:16
@odanado odanado force-pushed the add-confbox-for-parsing-npmrc branch from 0631b23 to f476de4 Compare May 26, 2025 16:32
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 73.91304% with 6 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@8c7c72b). Learn more about missing BASE report.

Files with missing lines Patch % Lines
packages/nuxi/src/commands/module/_utils.ts 84.21% 3 Missing ⚠️
packages/nuxi/src/commands/module/add.ts 25.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #881   +/-   ##
=======================================
  Coverage        ?   13.39%           
=======================================
  Files           ?       69           
  Lines           ?     3598           
  Branches        ?      107           
=======================================
  Hits            ?      482           
  Misses          ?     3085           
  Partials        ?       31           

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • πŸ“¦ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

pkg-pr-new bot commented May 26, 2025

Open in StackBlitz

npm i https://pkg.pr.new/create-nuxt@881
npm i https://pkg.pr.new/nuxi@881
npm i https://pkg.pr.new/@nuxt/cli@881

commit: 5ffba90

@odanado
Copy link
Author

odanado commented May 26, 2025

@danielroe
Sorry for the late reply.
Could you please review this?

The following error is occurring in CI, but it seems to be a permissions issue with GitHub Actions, so I probably can't resolve it myself.

Error: Resource not accessible by integration - https://docs.github.com/rest/issues/comments#create-an-issue-comment

https://github.com/nuxt/cli/actions/runs/15258663204/job/42912106037

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.

When .npmrc contains comments, the nuxi module add command fails.
2 participants