Skip to content

Commit ad631bc

Browse files
committed
build!: migrate to tsdown with native import maps
- replace unbuild with tsdown - bump Node engines to >=22
1 parent c012f9c commit ad631bc

7 files changed

Lines changed: 790 additions & 1739 deletions

File tree

‎build.config.ts‎

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

‎package.json‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,34 @@
1515
"bugs": "https://github.com/namesmt/utils-lambda/issues",
1616
"keywords": [],
1717
"sideEffects": false,
18+
"source": "./src/index.ts",
19+
"imports": {
20+
"#src/*": "./src/*"
21+
},
1822
"exports": {
1923
".": {
2024
"types": "./dist/index.d.mts",
2125
"import": "./dist/index.mjs"
2226
}
2327
},
24-
"source": "./src/index.ts",
2528
"main": "./dist/index.mjs",
2629
"module": "./dist/index.mjs",
2730
"types": "./dist/index.d.mts",
2831
"files": [
2932
"dist"
3033
],
3134
"engines": {
32-
"node": ">=20.13.1"
35+
"node": ">=22.0.0"
3336
},
3437
"scripts": {
3538
"start": "NODE_ENV=dev tsx src/index.ts",
3639
"watch": "NODE_ENV=dev tsx watch src/index.ts",
37-
"stub": "unbuild --stub",
3840
"dev": "pnpm run watch",
39-
"play": "pnpm run stub && pnpm run --filter playground dev",
40-
"play:useBuild": "pnpm run build && pnpm run --filter playground dev",
4141
"lint": "eslint .",
4242
"test": "vitest",
4343
"test:types": "tsc --noEmit --skipLibCheck",
4444
"check": "pnpm lint && pnpm test:types && vitest run --coverage",
45-
"build": "unbuild",
45+
"build": "tsdown",
4646
"release": "pnpm dlx changelogen@latest --release --push --publish",
4747
"prepare": "simple-git-hooks",
4848
"prepublishOnly": "pnpm run build"
@@ -61,9 +61,9 @@
6161
"eslint": "^9.39.5",
6262
"lint-staged": "^15.5.2",
6363
"simple-git-hooks": "^2.14.0",
64+
"tsdown": "^0.23.0",
6465
"tsx": "^4.23.13",
6566
"typescript": "^5.9.3",
66-
"unbuild": "^3.6.1",
6767
"vitest": "^3.2.7"
6868
},
6969
"simple-git-hooks": {

0 commit comments

Comments
 (0)