Skip to content

Commit 4fc4bc8

Browse files
committed
feat!: drop CJS build, now it's ESM-only
1 parent 1c26308 commit 4fc4bc8

File tree

3 files changed

+5
-28
lines changed

3 files changed

+5
-28
lines changed

build.config.ts

-3
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
})

eslint.config.js

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
// @ts-check
22
import antfu from '@antfu/eslint-config'
33

4-
export default antfu(
5-
{
6-
ignores: [
7-
// eslint ignore globs here
8-
],
9-
},
10-
{
11-
rules: {
12-
// overrides
13-
},
14-
},
15-
)
4+
export default antfu()

package.json

+4-13
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,13 @@
2020
"sideEffects": false,
2121
"exports": {
2222
".": {
23-
"types": "./dist/index.d.ts",
24-
"import": "./dist/index.mjs",
25-
"require": "./dist/index.cjs"
23+
"types": "./dist/index.d.mts",
24+
"default": "./dist/index.mjs"
2625
}
2726
},
2827
"main": "./dist/index.mjs",
2928
"module": "./dist/index.mjs",
30-
"types": "./dist/index.d.ts",
31-
"typesVersions": {
32-
"*": {
33-
"*": [
34-
"./dist/*",
35-
"./dist/index.d.ts"
36-
]
37-
}
38-
},
29+
"types": "./dist/index.d.mts",
3930
"files": [
4031
"dist"
4132
],
@@ -44,7 +35,7 @@
4435
"dev": "unbuild --stub",
4536
"lint": "eslint .",
4637
"prepublishOnly": "nr build",
47-
"release": "bumpp && npm publish",
38+
"release": "bumpp && pnpm publish",
4839
"start": "esno src/index.ts",
4940
"test": "vitest",
5041
"typecheck": "tsc --noEmit",

0 commit comments

Comments
 (0)