Skip to content

chore: align tooling to canonical ESM stack#39

Merged
mridang merged 3 commits into
masterfrom
chore/align-canonical-tooling-v2
Jun 15, 2026
Merged

chore: align tooling to canonical ESM stack#39
mridang merged 3 commits into
masterfrom
chore/align-canonical-tooling-v2

Conversation

@mridang

@mridang mridang commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Description

Aligns this repo's tooling with the canonical ESM stack used across all mridang repos.

  • migrate to ESM ("type": "module", .npmrc --experimental-vm-modules flag)
  • canonical jest.config.mjs, tsconfig.jest.json, release.config.mjs
  • rename knip.config.js to knip.config.ts
  • ESM-compatibility rewrites in src/ and test/ (relative-import .js extensions, etc.)
  • add test/setup.ts and test/teardown.ts stubs

Restores per-archetype release.config.mjs so semantic-release uses the correct publishing pipeline (GitHub release + semantic-release-major-tag, no @semantic-release/npm).

Related Issue

N/A — tooling alignment sweep across all mridang repos.

Motivation and Context

Keeping config files byte-identical across jest-using repos makes the toolchain easier to maintain and reason about. This PR brings action-commit-lint in line with the canonical layout.

How Has This Been Tested?

CI will exercise lint, format, test, and build on the PR branch.

Documentation:

N/A

Checklist:

  • I have updated the documentation accordingly.
  • I have assigned the correct milestone or created one if non-existent.
  • I have correctly labeled this pull request.
  • I have linked the corresponding issue in this description.
  • I have requested a review from at least 2 reviewers
  • I have checked the base branch of this pull request
  • I have checked my code for any possible security vulnerabilities

mridang added 3 commits June 15, 2026 12:15
* chore: align tooling to canonical ESM stack

- migrate to ESM (type: module + .npmrc --experimental-vm-modules)
- canonical jest/release configs and tsconfig.jest.json
- rename knip.config.js to knip.config.ts
- ESM-compatibility rewrites in src and tests
- add test/setup.ts and test/teardown.ts stubs

* fix(knip): trace archetype-specific entries

- add entry for src/main.ts and src/load.patch.ts (rollup alias target)
- ignore @commitlint/config-conventional (loaded dynamically in tests)
- drop dead dep semantic-release-major-tag
The canonical config incorrectly added @semantic-release/npm publishing for an action repo.
@mridang mridang merged commit e1bc7b3 into master Jun 15, 2026
5 checks passed
@mridang mridang deleted the chore/align-canonical-tooling-v2 branch June 15, 2026 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant