Skip to content

Comments

feat(npm): add --lockfile-subdir option supporting yarn and npm#171

Draft
watson wants to merge 1 commit intoDataDog:mainfrom
watson:watson/lockfile-subdir
Draft

feat(npm): add --lockfile-subdir option supporting yarn and npm#171
watson wants to merge 1 commit intoDataDog:mainfrom
watson:watson/lockfile-subdir

Conversation

@watson
Copy link
Contributor

@watson watson commented Feb 18, 2026

What type of PR is this? (check all applicable)

  • Feature / Major Change / Refactor / Optimization
  • Bug Fix
  • Documentation Update

Description

Rename --yarn-subdir to --lockfile-subdir to support both yarn.lock and package-lock.json in monorepo subdirectories. The tool now auto-detects the package manager per subdirectory. --yarn-subdir is kept as a backward-compatible alias (though a version was never released that support this flag, so technically we could remove it).

Related tickets & Documents

  • Approved RFC (for feature/major changes) #
  • Related Issue #
  • Closes #

How to reproduce and testing

@watson watson force-pushed the watson/lockfile-subdir branch 3 times, most recently from cfb7b61 to 23dbacd Compare February 18, 2026 12:44
@watson watson force-pushed the watson/lockfile-subdir branch from 23dbacd to 84094b0 Compare February 18, 2026 13:10
Rename --yarn-subdir to --lockfile-subdir to support both yarn.lock
and package-lock.json in monorepo subdirectories. The tool now
auto-detects the package manager per subdirectory. --yarn-subdir is
kept as a backward-compatible alias.
@watson watson force-pushed the watson/lockfile-subdir branch from 84094b0 to 8ea483b Compare February 18, 2026 13:40
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.

1 participant