Sitelet https://github.com/fb55/css-what/pull/1736
Skip to content

refactor!: ESM-only - #1736

Merged
fb55 merged 5 commits into
masterfrom
esm
Mar 17, 2026
Merged

fb55 merged 5 commits into
masterfrom
esm

Conversation

@fb55

@fb55 fb55 commented Mar 17, 2026

Copy link
Copy Markdown
Owner
  • Drop tshy, use plain tsc build
  • Update tsconfig: target es2022, module nodenext
  • Simplify exports to ESM-only
  • Update engines to >= 20.19.0
  • Add publish workflow (npm + JSR)
  • Remove esModuleInterop

BREAKING CHANGE: This package is now ESM-only.

fb55 added 3 commits March 17, 2026 09:24
- Drop tshy, use plain tsc build
- Update tsconfig: target es2022, module nodenext
- Simplify exports to ESM-only
- Update engines to >= 20.19.0
- Remove @vitest/coverage-v8
- Migrate biome config

BREAKING CHANGE: This package is now ESM-only.
Copilot AI review requested due to automatic review settings March 17, 2026 09:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors the package build and distribution to be ESM-only, moving from tshy to a plain tsc build and updating publishing/metadata to reflect modern Node/TypeScript settings.

Changes:

  • Switch build pipeline to tsc with updated tsconfig.json (ES2022 + NodeNext) and simplified exports for ESM-only output.
  • Raise Node engine requirement to >=20.19.0 and remove tshy (and related config/ignores).
  • Add a tag-triggered GitHub Actions publish workflow for npm + JSR.

Reviewed changes

Copilot reviewed 4 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tsconfig.json Updates compiler target/module settings and aligns build output to dist/.
package.json Simplifies ESM exports, adds build script, updates engines, removes tshy and coverage provider dep.
package-lock.json Reflects dependency graph changes from removing tshy and other dev tooling updates.
biome.json Bumps Biome schema version to match the updated Biome dependency.
.gitignore Removes tshy build artifact ignores.
.github/workflows/publish.yml Adds automated publishing on version tags for npm + JSR.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread .github/workflows/publish.yml
Comment thread package.json
Comment thread package.json
Comment thread .github/workflows/publish.yml
@fb55
fb55 enabled auto-merge (squash) March 17, 2026 12:53
@fb55
fb55 merged commit 56044b5 into master Mar 17, 2026
10 checks passed
@fb55
fb55 deleted the esm branch March 17, 2026 12: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.

2 participants