Skip to content

Bug: sub-dependencies in JSR are not using JSR sub-dependencies #168

@cylewaitforit

Description

@cylewaitforit

Environment

ESLint version: 9.36.0
@eslint/json version: @jsr/[email protected]
Node version: 20.5.1
npm version: n/a (pnpm version: 10.17.1)
Operating System: Linux

Which language are you using?

json

What did you do?

Configuration
"@eslint/json": "jsr:^0.13.2",

Installed @eslint/json from JSR and the @eslint/ sub-dependencies were installed from npm.

What did you expect to happen?

  '@jsr/[email protected]':
    dependencies:
       '@humanwhocodes/momoa': 3.3.9
       '@jsr/eslint__core': 0.15.2
       '@jsr/eslint__plugin-kit': '0.3.5'
       natural-compare: 1.4.0

What actually happened?

  '@jsr/[email protected]':
    dependencies:
      '@eslint/core': 0.15.2
      '@eslint/plugin-kit': 0.3.5
      '@humanwhocodes/momoa': 3.3.9
      natural-compare: 1.4.0

Link to Minimal Reproducible Example

https://github.com/nx-community/nx-community/pull/537/files

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

Adding an imports section to the jsr.json should replace the npm imports at the time of publishing to JSR.

  "imports": {
    "@eslint/core": "jsr:@eslint/[email protected]",
    "@eslint/plugin-kit": "jsr:@eslint/[email protected]"
  }

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingrepro:neededThis issue should include a reproducible example

Type

No type

Projects

Status

Needs Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions