Skip to content

Commit 95f71f9

Browse files
committed
feat!: drop CJS build, now it's ESM-only
1 parent 549018c commit 95f71f9

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

build.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,4 @@ export default defineBuildConfig({
66
],
77
declaration: true,
88
clean: true,
9-
rollup: {
10-
emitCJS: true,
11-
},
129
})

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,16 @@
2020
],
2121
"sideEffects": false,
2222
"exports": {
23-
".": {
24-
"types": "./dist/index.d.ts",
25-
"import": "./dist/index.mjs",
26-
"require": "./dist/index.cjs"
27-
}
23+
".": "./dist/index.mjs"
2824
},
2925
"main": "./dist/index.mjs",
3026
"module": "./dist/index.mjs",
31-
"types": "./dist/index.d.ts",
27+
"types": "./dist/index.d.mts",
3228
"typesVersions": {
3329
"*": {
3430
"*": [
3531
"./dist/*",
36-
"./dist/index.d.ts"
32+
"./dist/index.d.mts"
3733
]
3834
}
3935
},

0 commit comments

Comments
 (0)