Skip to content

fix: preserve scoped package names in array dependencies - #270

Open
vhinayindia wants to merge 1 commit into
npm:mainfrom
vhinayindia:fix/105-scoped-array-dependencies
Open

vhinayindia wants to merge 1 commit into
npm:mainfrom
vhinayindia:fix/105-scoped-array-dependencies

Conversation

@vhinayindia

Copy link
Copy Markdown

Array-form dependencies remain accepted, but depObjectify treats a scoped package's leading @ as a range delimiter, producing an empty dependency key (for example, @scope/pkg@^1.2.3). Preserve the @scope/ prefix while parsing and cover scoped entries both with and without a version.

Fixes #105

Validation: 69 tests pass; ESLint passes. npm run lint reaches ESLint successfully, then fails in template-oss-check on five generated template files. The same lint failure reproduces on pristine main.

@vhinayindia
vhinayindia requested a review from a team as a code owner October 6, 2026 13:46
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.

[BUG] Array dependencies can't handle scoped packages

1 participant