Skip to content

Add devcheck for the fix-headers-dev condition, and a require target on the dev condition #158

Closed

Description

@Shinrai

Problem

  • There's no devcheck. Running from a checkout without --conditions=fix-headers-dev silently loads the built dist/ (or fails if it isn't built) instead of src/, and nothing says so.
  • The fix-headers-dev condition on "." has types and import but no require, so require("@cldmv/fix-headers") in a checkout always gets dist/index.cjs, even with the condition set.

The CLDMV library convention (reference implementation: CLDMV/llm-translator, PR #1) includes a root devcheck.mjs. Its canonical copy is @cldmv/uuid's:

  • it reads --conditions=x / --conditions x / -C x from both NODE_OPTIONS and process.execArgv, and only an exact match counts;
  • it skips in CI and when installed under node_modules;
  • it still nags when dist/ exists, and ignores NODE_ENV;
  • it is never published.

Tasks

Related

Activity

  1. added
    type: enhancement
    priority: low
    area: core
    status: not started
    type: bug
    and removed
    type: enhancement
    on Oct 25, 2026
  2. added
    status: implemented
    and removed
    status: not started
    on Nov 1, 2026
  3. Shinrai commented on Nov 1, 2026

    @Shinrai
    ContributorAuthor

    Shipped in v2.2.4 (#167), via #165. It didn't auto-close because the release notes said "fixes #157 and #158", and only the issue right after the keyword gets linked. Closing by hand.

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

    area: corepriority: lowstatus: implementedtype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions