Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@antongolub
Copy link
Collaborator

  • Tests pass
  • Appropriate changes to README are included in PR

@antongolub antongolub added the bug label Aug 7, 2025
@antongolub antongolub requested a review from Copilot August 7, 2025 07:02
Copy link

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 fixes the handling of npm install flags by refactoring how optional flags are managed. Instead of concatenating empty strings when flags are not needed, it now uses an array-based approach with filtering to ensure only valid flags are passed to the npm command.

  • Replaces string concatenation with array-based flag management
  • Uses filter(Boolean) to remove falsy values (null/undefined flags)
  • Maintains the same functionality while improving code clarity

Reviewed Changes

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

File Description
src/deps.ts Refactors npm installer to use array-based flag filtering instead of string concatenation
build/deps.cjs Contains the compiled version of the TypeScript changes with the same flag filtering logic

@antongolub antongolub merged commit 6398320 into google:main Aug 7, 2025
28 checks passed
@antongolub antongolub deleted the fix-npm-install branch August 7, 2025 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant