Skip to content

Commit eb12800

Browse files
committed
build!: esm-only dist
1 parent 9ec22a3 commit eb12800

File tree

3 files changed

+731
-950
lines changed

3 files changed

+731
-950
lines changed

build.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { defineBuildConfig } from "obuild/config";
2+
3+
export default defineBuildConfig({
4+
entries: ["./src/index.ts"],
5+
});

package.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,16 @@
77
"sideEffects": false,
88
"type": "module",
99
"exports": {
10-
".": {
11-
"types": "./dist/index.d.ts",
12-
"import": "./dist/index.mjs",
13-
"require": "./dist/index.cjs"
14-
}
10+
".": "./dist/index.mjs"
1511
},
16-
"main": "./dist/index.cjs",
12+
"main": "./dist/index.mjs",
1713
"module": "./dist/index.mjs",
18-
"types": "./dist/index.d.ts",
14+
"types": "./dist/index.d.mts",
1915
"files": [
2016
"dist"
2117
],
2218
"scripts": {
23-
"build": "unbuild",
19+
"build": "obuild",
2420
"dev": "vitest dev",
2521
"lint": "eslint . && prettier --check src test",
2622
"lint:fix": "eslint . --fix && prettier -w src test",
@@ -34,10 +30,10 @@
3430
"eslint": "^9.34.0",
3531
"eslint-config-unjs": "^0.5.0",
3632
"in-range": "^3.0.0",
33+
"obuild": "^0.2.1",
3734
"prettier": "^3.6.2",
3835
"time-span": "^5.1.0",
3936
"typescript": "^5.9.2",
40-
"unbuild": "^3.6.1",
4137
"vitest": "^3.2.4"
4238
},
4339
"packageManager": "[email protected]"

0 commit comments

Comments
 (0)