Skip to content

build!: publish ESM only, require Node 22 and switch to tsdown - #24

Merged
mvantellingen merged 10 commits into
mainfrom
modernize
Oct 26, 2026
Merged

mvantellingen merged 10 commits into
mainfrom
modernize

Conversation

@mvantellingen

@mvantellingen mvantellingen commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Summary

  • build(deps): TypeScript 7, @changesets/cli 3, biome 2.5, pnpm 12.12.1; tsup -> tsdown; tsconfig types: ["node"]
  • fix: main pointed at a non-existent index.js and exports lacked types
  • build: remove stale eslint/jest leftovers
  • build!: require Node.js >= 22 (.nvmrc)
  • build!: publish ESM only (CommonJS and IIFE builds dropped)
  • ci: validate pull requests and pushes to main, release only on main, version script via changesets/action, actions/checkout v7.0.1
  • build: run publint via tsdown on every build (publint: true + failOnWarn: true, so package and build warnings fail pnpm build)
  • docs: npm badges
  • changesets (patch for the entry point fix, minor for Node 22 / ESM-only)

Update all dev dependencies (TypeScript 7, @changesets/cli 3, biome
2.5) and pnpm to 12.12.1, and build with tsdown instead of tsup, keeping
the same output files (including dist/index.global.js, which now exposes
an 'enviconf' global). TypeScript 7 no longer includes @types/node by
default, so list it in tsconfig types.
@changeset-bot

changeset-bot Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bd14930

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@labdigital/enviconf Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

BREAKING CHANGE: the package now declares engines.node >=22.
Run the workflow for pull requests and pushes to main instead of every
push, release only on pushes to main, let changesets/action run the
version script and update actions/checkout to v7.0.1.
BREAKING CHANGE: the CommonJS and IIFE builds are no longer published.
@mvantellingen
mvantellingen merged commit e47fa3b into main Oct 26, 2026
6 checks passed
@mvantellingen
mvantellingen deleted the modernize branch October 26, 2026 13:16
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