From 8078ece8a777da5f57dc34635d17ccc8b5112090 Mon Sep 17 00:00:00 2001 From: Blake Embrey Date: Tue, 19 Aug 2025 19:00:53 -0700 Subject: [PATCH] Build package as ESM --- .github/workflows/ci.yml | 2 +- package.json | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3670433..967a507 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: node-version: - - "18" + - "20" - "*" steps: - uses: actions/checkout@v4 diff --git a/package.json b/package.json index 58cd9bd..2686214 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,8 @@ "url": "https://opencollective.com/express" }, "license": "MIT", + "sideEffects": false, + "type": "module", "exports": "./dist/index.js", "main": "dist/index.js", "typings": "dist/index.d.ts", @@ -45,7 +47,7 @@ "vitest": "^3.0.5" }, "engines": { - "node": ">=18" + "node": ">=20" }, "publishConfig": { "access": "public" @@ -53,7 +55,7 @@ "size-limit": [ { "path": "dist/index.js", - "limit": "2 kB" + "limit": "1.85 kB" } ], "ts-scripts": {