Skip to content

fix: require ESM-safe Contracts structure runtime #253

Description

@artiphishle

Problem

The structural descriptor generator imports @ankhorage/contracts/structure at runtime, but Devtools still declares @ankhorage/contracts: ^22.1.1. Contracts 22.1.1 contains the pre-fix Node ESM structure subpath; the ESM-safe public structure boundary was released in 22.1.2.

This currently breaks ankhorage-structure check inside Contracts itself with ERR_MODULE_NOT_FOUND while loading the transitive Devtools-owned Contracts 22.1.1 copy.

Scope

Acceptance

  • frozen Devtools install resolves Contracts >=22.1.2
  • @ankhorage/contracts/structure is Node ESM-loadable through Devtools runtime usage
  • build, Doctor, lint, format, Knip, tests, typecheck and changeset checks are green
  • release unblocks feat: publish generated screen metadata structure contracts#251 structure drift validation

Skills

  • .agents/skills/ankhorage-coding-rules/SKILL.md
  • .agents/skills/ankhorage-project-structure/SKILL.md
  • .agents/skills/hexagonal-architecture/SKILL.md

Unblocks: ankhorage/contracts#251
Parent consumer: ankhorage/studio#583

Activity

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

Metadata

Metadata

Assignees

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