• Populate a local JSR instance with packages from an upstream registry

    Parameters

    • params: {
          createViaApi?: boolean;
          deno?: string;
          downstream: string;
          packages: string[];
          publishArgs?: string[] | (pkg: string) => string[];
          quiet?: boolean;
          token?: string;
          upstream?: string;
      }
      • OptionalcreateViaApi?: boolean

        Whether to create packages via the API instead of interactively via web UI. Useful for CI/CD.

        Requires token to be set.

      • Optionaldeno?: string

        Deno executable path

        "deno" (from PATH)
        
      • downstream: string

        URL of the downstream local registry

      • packages: string[]

        List of packages to populate (in format: @scope/name@version, e.g. @std/fs@0.105.0)

      • OptionalpublishArgs?: string[] | (pkg: string) => string[]

        Additional arguments to pass to deno publish

      • Optionalquiet?: boolean

        Whether to suppress output

        false
        
      • Optionaltoken?: string

        Optional token for authentication (will be passed as -t to deno publish). Useful for CI/CD.

      • Optionalupstream?: string

        URL of the upstream registry

        "https://jsr.io"
        

    Returns Promise<void>