Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.
This repository was archived by the owner on Oct 16, 2025. It is now read-only.

ESM-compatible builds are not being generated #325

@mcmire

Description

@mcmire

Only CommonJS-compatible builds are being generated, which means this library will not work in an ESM-only setting.

We should be using ts-bridge to build this package rather than straight tsc.

Acceptance Criteria

  • Running yarn build should produce CommonJS- and ESM-compatible variants (i.e., .cjs, .mjs, .d.cts, and .d.mts variants should be present in dist/) via ts-bridge`
  • The build:clean package script should not exist
  • Arbitrary subimports should not be possible (there should only be two exports, . and ./package.json, and they should point to both CommonJS and ESM variants)

Metadata

Metadata

Assignees

No one assigned

    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