Skip to content

Convert to ESM-native + CJS wrapper (dual format) #2

Description

@Shinrai

Tracking issue — not urgent.

@cldmv/wol-proxy is currently CommonJS (index.js, "type": "commonjs"). Migrate to the newer CLDMV dual-format shape used by modules like git-embedded, droidsock, and stubborn-tcp: ESM-native source with a CJS wrapper

  • "type": "module", source as .mjs,
  • a generated/hand-written index.cjs wrapper for CommonJS consumers,
  • a package.json exports map (import.mjs, require.cjs),
  • update the wol-proxy bin entrypoint accordingly.

Note: the vitest characterization tests added during the @v4 onboarding lock current behavior — update them alongside the module-format change.

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