Skip to content

Stop committing types/: generate it in build:ci and prepack #211

Done

Description

@Shinrai

Generated declarations shouldn't be committed. types/ is tracked here today (40 files), and the config sets rewriteDeclarationCopies: false only so fix-headers and tsc stop rewriting each other's @Filename in the committed copy.

The change, following CLDMV/lib-sqlite-wasm#4:

  • gitignore types/ and git rm --cached the tracked files
  • types:build runs tsc and then stamps headers on its output, so each declaration names the file it ships as. In this repo that's node --conditions=fix-headers-dev ./src/cli.mjs --config .configs/fix-headers.json --input types (the package's own CLI from source)
  • prepack runs types:build before build, so a publish always ships fresh declarations; build:ci already runs types:build
  • drop "rewriteDeclarationCopies": false from .configs/fix-headers.json, so the default restamp applies
  • anything that expects types/ in a fresh checkout (the integration test's entry-point check reads types/index.d.mts from the repo) builds it first or is changed

Same request for slothlet: CLDMV/slothlet#1007.

Activity

  1. added
    type: enhancement
    priority: medium
    status: not started
    status: in progress
    and removed
    status: not started
    on Nov 27, 2026
  2. added 2 commits that reference this issue on Nov 27, 2026
    a3e33fd
    17e7682
  3. added
    status: implemented
    and removed
    status: in progress
    on Nov 27, 2026
  4. cldmv-bot commented on Nov 27, 2026

    @cldmv-bot
    Contributor

    Marked status: implemented — resolved by #215, 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: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions