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

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

# https://jsr.io/@scope/a/1.0.0/a.js
export class A1 {
  method() {
    return Math.random();
  }
}
export class A2 {}
export class A3 {}

# https://jsr.io/@scope/a/1.0.0/mod.ts
export * from "./a.js";

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

# 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
              }
            }
          }
        }
      ],
      "size": 22,
      "mediaType": "TypeScript",
      "specifier": "file:///mod.ts"
    },
    {
      "kind": "esm",
      "size": 101,
      "mediaType": "JavaScript",
      "specifier": "https://jsr.io/@scope/a/1.0.0/a.js"
    },
    {
      "kind": "esm",
      "dependencies": [
        {
          "specifier": "./a.js",
          "code": {
            "specifier": "https://jsr.io/@scope/a/1.0.0/a.js",
            "resolutionMode": "import",
            "span": {
              "start": {
                "line": 0,
                "character": 14
              },
              "end": {
                "line": 0,
                "character": 22
              }
            }
          }
        }
      ],
      "size": 24,
      "mediaType": "TypeScript",
      "specifier": "https://jsr.io/@scope/a/1.0.0/mod.ts"
    }
  ],
  "redirects": {
    "jsr:@scope/a": "https://jsr.io/@scope/a/1.0.0/mod.ts"
  },
  "packages": {
    "@scope/a@*": "@scope/a@1.0.0"
  }
}

Fast check https://jsr.io/@scope/a/1.0.0/mod.ts:
  error[unsupported-nested-javascript]: referenced a JavaScript module without type declarations from a TypeScript module
   --> https://jsr.io/@scope/a/1.0.0/a.js
    = hint: add a type declaration (d.ts) for the JavaScript module, or rewrite it to TypeScript

    info: JavaScript files with no corresponding declaration require type inference to be type checked
    info: fast check avoids type inference, so referencing a JavaScript file with no type declarations is not supported
    docs: https://jsr.io/go/slow-type-unsupported-nested-javascript
