File tree 2 files changed +15
-6
lines changed
2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change
1
+ import { defineBuildConfig } from "unbuild" ;
2
+ import { rm } from "node:fs/promises" ;
3
+
4
+ export default defineBuildConfig ( {
5
+ hooks : {
6
+ async "build:done" ( ) {
7
+ await rm ( "dist/index.d.ts" ) ;
8
+ await rm ( "dist/cli.d.ts" ) ;
9
+ await rm ( "dist/cli.d.mts" ) ;
10
+ } ,
11
+ } ,
12
+ } ) ;
Original file line number Diff line number Diff line change 8
8
"type" : " module" ,
9
9
"exports" : {
10
10
"." : {
11
- "types" : " ./dist/index.d.ts" ,
12
- "import" : " ./dist/index.mjs" ,
13
- "require" : " ./dist/index.cjs"
11
+ "types" : " ./dist/index.d.mts" ,
12
+ "default" : " ./dist/index.mjs"
14
13
}
15
14
},
16
15
"bin" : {
17
16
"changelogen" : " ./dist/cli.mjs"
18
17
},
19
- "main" : " ./dist/index.cjs" ,
20
- "module" : " ./dist/index.mjs" ,
21
- "types" : " ./dist/index.d.ts" ,
18
+ "types" : " ./dist/index.d.mts" ,
22
19
"files" : [
23
20
" dist"
24
21
],
You can’t perform that action at this time.
0 commit comments