# https://jsr.io/@scope/a/meta.json
{
  "versions": {
    "1.0.0": {},
    "1.0.1": {}
  }
}

# https://jsr.io/@scope/a/1.0.0_meta.json
{
  "exports": {
    ".": "./mod.ts"
  }
}

# https://jsr.io/@scope/a/1.0.1_meta.json
{
  "exports": {
    ".": "./mod.ts"
  }
}

# https://jsr.io/@scope/b/meta.json
{
  "versions": {
    "2.0.0": {}
  }
}

# https://jsr.io/@scope/b/2.0.0_meta.json
{
  "exports": {
    "./sub": "./sub_dir/sub.ts"
  }
}

# https://jsr.io/@scope/c/meta.json
{
  "versions": {
    "3.0.0": {},
    "3.0.1": {}
  }
}

# https://jsr.io/@scope/c/3.0.0_meta.json
{
  "exports": {
    ".": "./mod.ts"
  }
}

# mod.ts
import 'jsr:@scope/a'
import 'jsr:@scope/c@3.0.0'

# https://jsr.io/@scope/a/1.0.1/mod.ts
import 'jsr:@scope/b@2/sub';

# https://jsr.io/@scope/b/2.0.0/sub_dir/sub.ts
// should still resolve to 3.0.0 because that was resolved earlier
import 'jsr:@scope/c@3';

# https://jsr.io/@scope/c/3.0.0/mod.ts
console.log(1);

# output
{
  "roots": [
    "file:///mod.ts"
  ],
  "modules": [
    {
      "kind": "esm",
      "dependencies": [
        {
          "specifier": "jsr:@scope/a",
          "code": {
            "specifier": "jsr:@scope/a",
            "resolutionMode": "import",
            "span": {
              "start": {
                "line": 0,
                "character": 7
              },
              "end": {
                "line": 0,
                "character": 21
              }
            }
          }
        },
        {
          "specifier": "jsr:@scope/c@3.0.0",
          "code": {
            "specifier": "jsr:@scope/c@3.0.0",
            "resolutionMode": "import",
            "span": {
              "start": {
                "line": 1,
                "character": 7
              },
              "end": {
                "line": 1,
                "character": 27
              }
            }
          }
        }
      ],
      "size": 50,
      "mediaType": "TypeScript",
      "specifier": "file:///mod.ts"
    },
    {
      "kind": "esm",
      "dependencies": [
        {
          "specifier": "jsr:@scope/b@2/sub",
          "code": {
            "specifier": "jsr:@scope/b@2/sub",
            "resolutionMode": "import",
            "span": {
              "start": {
                "line": 0,
                "character": 7
              },
              "end": {
                "line": 0,
                "character": 27
              }
            }
          }
        }
      ],
      "size": 29,
      "mediaType": "TypeScript",
      "specifier": "https://jsr.io/@scope/a/1.0.1/mod.ts"
    },
    {
      "kind": "esm",
      "dependencies": [
        {
          "specifier": "jsr:@scope/c@3",
          "code": {
            "specifier": "jsr:@scope/c@3",
            "resolutionMode": "import",
            "span": {
              "start": {
                "line": 1,
                "character": 7
              },
              "end": {
                "line": 1,
                "character": 23
              }
            }
          }
        }
      ],
      "size": 92,
      "mediaType": "TypeScript",
      "specifier": "https://jsr.io/@scope/b/2.0.0/sub_dir/sub.ts"
    },
    {
      "kind": "esm",
      "size": 16,
      "mediaType": "TypeScript",
      "specifier": "https://jsr.io/@scope/c/3.0.0/mod.ts"
    }
  ],
  "redirects": {
    "jsr:@scope/a": "https://jsr.io/@scope/a/1.0.1/mod.ts",
    "jsr:@scope/b@2/sub": "https://jsr.io/@scope/b/2.0.0/sub_dir/sub.ts",
    "jsr:@scope/c@3": "https://jsr.io/@scope/c/3.0.0/mod.ts",
    "jsr:@scope/c@3.0.0": "https://jsr.io/@scope/c/3.0.0/mod.ts"
  },
  "packages": {
    "@scope/a@*": "@scope/a@1.0.1",
    "@scope/b@2": "@scope/b@2.0.0",
    "@scope/c@3.0.0": "@scope/c@3.0.0",
    "@scope/c@3": "@scope/c@3.0.0"
  }
}

jsr deps: {
    "@scope/a@1.0.1": [
        "jsr:@scope/b@2",
    ],
    "@scope/b@2.0.0": [
        "jsr:@scope/c@3",
    ],
}

Fast check https://jsr.io/@scope/a/1.0.1/mod.ts:
  {}
  <empty>
Fast check https://jsr.io/@scope/c/3.0.0/mod.ts:
  {}
  <empty>
