Skip to content

Decouple packages/contracts/out build-order from tests and typecheck #33

Description

@ryandmonk

Follow-up recorded at the ledger-v2 merge closeout (pre-existing debt, independent of #31).

packages/contracts/out/ is gitignored yet required by dependent tests and typechecks. In a fresh clone, running pnpm -r typecheck (or some package tests) before pnpm --filter @dspack-studio/contracts build:catalogs fails with transient TS errors that disappear once the artifacts exist; CI avoids it only by step ordering (.github/workflows/ci.yml builds catalogs first). This was re-observed during #31's cold fresh-clone verification.

Wanted: make the coupling explicit — e.g. a pretest/pretypecheck hook or pnpm dependency ordering so build:catalogs runs automatically wherever its outputs are consumed, or commit a minimal typed stub. First noted in the original composer investigation's known-debt list.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions