diff --git a/README.md b/README.md index 98f0a1e..706d567 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,8 @@ https://codepunkt.de/writing/blazing-fast-prisma-and-postgres-tests-in-vitest/ ## Installation & Setup +> Requires Node.js 20 or newer (CI covers 20.x, 22.x, 24.x). + #### Step 1: Install the environment First, install the environnment: diff --git a/package.json b/package.json index f14f0af..17bd7d3 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/codepunkt/vitest-environment-prisma-postgres" }, "engines": { - "node": "24.11.1" + "node": ">=20" }, "scripts": { "build": "tsup", diff --git a/tsup.config.ts b/tsup.config.ts index b7c84f1..9e7436b 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -3,7 +3,7 @@ import { defineConfig } from 'tsup'; export default defineConfig({ entry: ['src/index.ts', 'src/setup.ts'], format: ['esm'], - target: 'node24', + target: 'node20', outDir: 'dist', sourcemap: true, clean: true,