Skip to content

Commit 9085eda

Browse files
committed
Remove es2015 bundle, bump node version
1 parent ee2d2cf commit 9085eda

File tree

4 files changed

+15
-23
lines changed

4 files changed

+15
-23
lines changed

package-lock.json

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@
1313
"url": "https://github.com/pillarjs/path-to-regexp.git"
1414
},
1515
"license": "MIT",
16-
"sideEffects": false,
16+
"exports": "./dist/index.js",
1717
"main": "dist/index.js",
18-
"module": "dist.es2015/index.js",
1918
"typings": "dist/index.d.ts",
2019
"files": [
21-
"dist.es2015/",
2220
"dist/"
2321
],
2422
"scripts": {
@@ -36,27 +34,27 @@
3634
"@types/node": "^20.4.9",
3735
"@types/semver": "^7.3.1",
3836
"@vitest/coverage-v8": "^1.4.0",
39-
"semver": "^7.3.5",
4037
"size-limit": "^11.1.2",
4138
"typescript": "^5.1.6"
4239
},
40+
"engines": {
41+
"node": ">=16"
42+
},
4343
"publishConfig": {
4444
"access": "public"
4545
},
4646
"size-limit": [
4747
{
48-
"path": "dist.es2015/index.js",
49-
"limit": "2.1 kB"
48+
"path": "dist/index.js",
49+
"limit": "2.2 kB"
5050
}
5151
],
5252
"ts-scripts": {
5353
"dist": [
54-
"dist",
55-
"dist.es2015"
54+
"dist"
5655
],
5756
"project": [
58-
"tsconfig.build.json",
59-
"tsconfig.es2015.json"
57+
"tsconfig.build.json"
6058
]
6159
}
6260
}

tsconfig.es2015.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

tsconfig.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"extends": "@borderless/ts-scripts/configs/tsconfig.json",
33
"compilerOptions": {
4-
"target": "es5",
5-
"lib": ["es5"],
4+
"target": "ES2015",
5+
"lib": ["ES2015"],
66
"rootDir": "src",
77
"outDir": "dist",
8-
"module": "commonjs",
9-
"moduleResolution": "node",
8+
"module": "NodeNext",
9+
"moduleResolution": "NodeNext",
1010
"types": ["node"]
1111
},
1212
"include": ["src/**/*"]

0 commit comments

Comments
 (0)