# 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/mod.ts
export const foobar: "F" = "F";
export const str: string = "";

// no substitutions
export const a = `hello world`;
export let b = `hello world`;
export const c = `hello world` as const;
export const d = `multi
line`;

// with substitutions
export const e = `hello ${1 + 2} world`;
export let f = `hello ${foobar} world`;
export const g = `hello ${foobar} world`;
export const h = `hello ${str} world`;

// const asserted with substitutions
export const i = `hello ${foobar} world` as const;
export const j = `hello ${str} world` as const;

// class members
export class C {
  readonly a = `hello world`;
  b = `hello world`;
  static readonly c = `hello world`;
  readonly d = `hello ${str} world`;
}

// default export
export default `hello world`;

# 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": 751,
      "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:
  {}
  export const foobar: "F" = {} as never;
  export const str: string = {} as never;
  export const a: "hello world" = {} as never;
  export let b: string = {} as never;
  export const c = `hello world` as const;
  export const d: "multi\nline" = {} as never;
  export const e: string = {} as never;
  export let f: string = {} as never;
  export const g: string = {} as never;
  export const h: string = {} as never;
  export const i = `hello ${foobar} world` as const;
  export const j = `hello ${str} world` as const;
  export class C {
    declare readonly a: "hello world";
    declare b: string;
    declare static readonly c: "hello world";
    declare readonly d: string;
  }
  export default `hello world`;
  --- DTS ---
  export declare const foobar: "F";
  export declare const str: string;
  export declare const a: "hello world";
  export declare let b: string;
  export declare const c: "hello world";
  export declare const d: "multi\nline";
  export declare const e: string;
  export declare let f: string;
  export declare const g: string;
  export declare const h: string;
  export declare const i: string;
  export declare const j: string;
  export declare class C {
    readonly a: "hello world";
    b: string;
    static readonly c: "hello world";
    readonly d: string;
  }
  declare const _dts_1: string;
  export default _dts_1;
