Skip to content

Commit 8078ece

Browse files
committed
Build package as ESM
1 parent 2a7f2a4 commit 8078ece

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
node-version:
14-
- "18"
14+
- "20"
1515
- "*"
1616
steps:
1717
- uses: actions/checkout@v4

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
"url": "https://opencollective.com/express"
1818
},
1919
"license": "MIT",
20+
"sideEffects": false,
21+
"type": "module",
2022
"exports": "./dist/index.js",
2123
"main": "dist/index.js",
2224
"typings": "dist/index.d.ts",
@@ -45,15 +47,15 @@
4547
"vitest": "^3.0.5"
4648
},
4749
"engines": {
48-
"node": ">=18"
50+
"node": ">=20"
4951
},
5052
"publishConfig": {
5153
"access": "public"
5254
},
5355
"size-limit": [
5456
{
5557
"path": "dist/index.js",
56-
"limit": "2 kB"
58+
"limit": "1.85 kB"
5759
}
5860
],
5961
"ts-scripts": {

0 commit comments

Comments
 (0)