Skip to content

chore: Modernise tooling#117

Merged
franky47 merged 16 commits intonextfrom
chore/tooling-upgrade
Jan 27, 2026
Merged

chore: Modernise tooling#117
franky47 merged 16 commits intonextfrom
chore/tooling-upgrade

Conversation

@franky47
Copy link
Copy Markdown
Member

@franky47 franky47 commented Jul 17, 2024

  • Replace Yarn with PNPM
  • Use semantic-release as a dependency
  • Unify CI/CD
  • Pin Node.js & PNPM versions
  • Drop running CI on pre-push
  • Replace Jest with Vitest
  • Replace transpilation with tsc with tsdown for bundling

@franky47 franky47 force-pushed the chore/tooling-upgrade branch from 3f06adc to ea1acc0 Compare August 12, 2024 20:48
@franky47 franky47 force-pushed the chore/tooling-upgrade branch from ea1acc0 to 728271c Compare January 27, 2026 08:32
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jan 27, 2026

pnpm add https://pkg.pr.new/prisma-field-encryption@117

commit: 8e95e8b

@franky47 franky47 marked this pull request as ready for review January 27, 2026 08:59
@franky47 franky47 requested a review from Copilot January 27, 2026 08:59
@franky47
Copy link
Copy Markdown
Member Author

@copilot check for breaking changes in the exposed API

Copy link
Copy Markdown

Copilot AI commented Jan 27, 2026

@franky47 I've opened a new pull request, #150, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR modernizes the project's tooling infrastructure by migrating from Yarn to PNPM, replacing Jest with Vitest for testing, and switching from TSC to tsdown for bundling. The changes also unify CI/CD workflows, pin Node.js and PNPM versions, remove pre-push hooks, and include semantic-release as a direct dependency.

Changes:

  • Replaced package manager from Yarn to PNPM with pinned version and workspace configuration
  • Migrated test framework from Jest to Vitest with unified configuration for unit and integration tests
  • Replaced TypeScript compiler with tsdown bundler for building, targeting Node 24 and CommonJS output
  • Unified CI/CD workflows into a single workflow file with separate CI and CD jobs
  • Updated dependencies and modernized import syntax to use type-only imports where appropriate

Reviewed changes

Copilot reviewed 32 out of 35 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
vitest.config.ts New Vitest configuration with separate unit and integration test projects, coverage enabled in CI
tsdown.config.mts New bundler configuration for main library and CLI generator with CommonJS output
tsconfig.json Updated to ESNext module system with bundler resolution, removed decorators and downlevel iteration
pnpm-workspace.yaml Workspace configuration specifying native dependencies that must be built
package.json Updated scripts, dependencies, and removed Jest configuration; added PNPM package manager field
src/**/*.ts Updated import statements to use type-only imports and replaced Jest mocks with Vitest
src/tests/sqlite.ts Migrated from sqlite+sqlite3 to better-sqlite3 with synchronous API
src/tests/prismaClient.ts Removed middleware client factory, kept only extension client
src/tests/migrate.ts Updated to remove CommonJS module check and use BigInt literal for id
src/tests/integration.test.ts Added async to beforeAll, updated client initialization, added type assertions
.github/workflows/ci-cd.yml New unified workflow with CI and CD jobs using PNPM and Node 24
.github/workflows/pkg.pr.new.yml Updated to use PNPM actions and setup
.husky/commit-msg Updated to use pnpm instead of yarn
.node-version New file pinning Node.js to version 24.11.0
.releaserc New semantic-release configuration with branch strategy
jest.config.*.json Removed Jest configuration files
.npmignore Removed in favor of package.json files field
.husky/pre-push Removed pre-push hook
.github/workflows/ci.yml Removed old CI workflow
.github/workflows/cd.yml Removed old CD workflow

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

Comment thread .github/workflows/ci-cd.yml
Comment thread src/tests/integration.test.ts Outdated
Comment thread package.json
Comment thread src/tests/sqlite.ts
Comment thread src/tests/sqlite.ts
Comment thread src/tests/migrate.ts Outdated
Comment thread src/tests/integration.test.ts Outdated
Comment thread src/dmmf.ts
@franky47 franky47 merged commit 318ca5c into next Jan 27, 2026
4 checks passed
@franky47 franky47 deleted the chore/tooling-upgrade branch January 27, 2026 10:10
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.6.1-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants