Skip to content

package-layout: publish declarations as a separate types package (@cldmv/{pkg}-types), like slothlet #448

Done

Description

@Shinrai

Packages shouldn't ship their types/. docs/conventions/package-layout.md currently puts types/ in files and points types / the <pkg>-dev condition at ./types/src/index.d.mts.

The target is what @cldmv/slothlet already does: the runtime package ships only a small types/stub/ whose .d.mts re-exports from a companion @cldmv/<pkg>-types package. That package is built from packaging/<pkg>-types/ and published in lockstep with the runtime (same version), and consumers install it as a dev dependency. See slothlet's docs/TYPESCRIPT.md, "Type Declarations (@cldmv/slothlet-types)".

types/ is also becoming a gitignored build artifact in the fleet .gitignore (#429), so repos that commit it today (uuid, fix-headers, vitest-runner, holdmytask, …) will stop tracking it.

To do:

  • package-layout.md: the stub + types-package layout, files, exports, how the types package is built and published (satellite packages via extra_packages), and how test:types runs against it.
  • Migration steps for repos that ship or commit types/ today.

Activity

  1. added
    type: documentation
    type: enhancement
    priority: medium
    status: not started
    on Nov 8, 2026
  2. changed the title [-]package-layout: publish declarations as a separate `@cldmv/<pkg>-types` package, like slothlet[/-] [+]package-layout: publish declarations as a separate types package (@cldmv/{pkg}-types), like slothlet[/+] on Nov 8, 2026
  3. added
    status: in progress
    and removed
    status: not started
    on Nov 25, 2026
  4. added
    status: implemented
    and removed
    status: in progress
    on Nov 25, 2026
  5. cldmv-bot commented on Nov 25, 2026

    @cldmv-bot
    Contributor

    Marked status: implemented — resolved by #539, merged into next. This issue closes automatically when that work ships to the default branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumstatus: implementedtype: documentationtype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions