Skip to content

build!: require Node 22, publish with trusted publishing and update dependencies - #11

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

mvantellingen merged 8 commits into
mainfrom
modernize

Conversation

@mvantellingen

@mvantellingen mvantellingen commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Summary

  • build(deps): TypeScript 7, Vitest 5, @changesets/cli 3; tsup -> tsdown; drop baseUrl and the removed vitest coverage all option
  • ci: publish to npm with trusted publishing (OIDC) and provenance through changesets/action v2, release job in the release environment without dependency cache, labd/gh-actions-typescript setup; validate on pull requests instead of every push
  • fix: remove the require exports condition that pointed at a missing CJS build
  • build!: require Node.js >= 22 (.nvmrc)
  • build: run publint via tsdown on every build (publint: true + failOnWarn: true, so package and build warnings fail pnpm build)
  • docs: npm badges
  • changesets (minor for Node 22 / ESM-only exports, patch for the exports fix)

Supersedes #10 (its OIDC change is rebuilt on top of main here), so #10 can be closed.

Update all dev dependencies (TypeScript 7, Vitest 5, @changesets/cli 3)
and build with tsdown instead of tsup. Drop the baseUrl tsconfig option,
which TypeScript 7 removed, and the coverage 'all' option removed in
Vitest 4.
Supersedes #10 (rebuilt on top of main). Publish through changesets/action
v2 with npm trusted publishing and provenance instead of an NPM_TOKEN,
run the release job in the release environment without a dependency
cache and set up Node/pnpm via labd/gh-actions-typescript. Also run the
validation on pull requests instead of on every push.
BREAKING CHANGE: the package now declares engines.node >=22.
@changeset-bot

changeset-bot Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c53191f

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

This PR includes changesets to release 1 package
Name Type
@labdigital/toolkit 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

@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 78.82% 67 / 85
🔵 Statements 75.53% 71 / 94
🔵 Functions 57.89% 22 / 38
🔵 Branches 59.18% 29 / 49
File CoverageNo changed files found.
Generated in workflow #38 for commit c53191f by the Vitest Coverage Report Action

@mvantellingen
mvantellingen merged commit 836acac into main Oct 26, 2026
5 checks passed
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