Skip to content

[Bug] CI typecheck fails due to missing build artifacts in monorepo #41

@best

Description

@best

Problem

After the CI restructuring in #36, the typecheck job runs before build. Cross-package type dependencies (e.g. channel-feishu depends on @openlinkos/channel) require compiled type declarations, which are not yet available at typecheck time.

Error

channels/channel-feishu typecheck: src/index.ts(1,40): error TS2307: Cannot find module '@openlinkos/channel' or its corresponding type declarations.

Root Cause

Old CI ran build → typecheck → test sequentially in one job. New CI separates them into typecheck → build → test, which breaks inter-package type resolution in the monorepo.

Acceptance Criteria

  • pnpm typecheck passes in CI without pre-build errors
  • Cross-package type references resolve correctly
  • CI still has some form of fast-fail (type errors caught early)
  • All CI jobs pass on master

Notes

The fix should balance fast-fail benefit vs. monorepo type dependency constraints. Multiple approaches are valid — choose the most appropriate one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginfraCI/CD, build, toolingpriority:highHigh priority

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions