File tree Expand file tree Collapse file tree 2 files changed +11
-19
lines changed
Expand file tree Collapse file tree 2 files changed +11
-19
lines changed Original file line number Diff line number Diff line change 11import { defineBuildConfig } from "unbuild" ;
2+ import { rm } from "node:fs/promises" ;
23
34export default defineBuildConfig ( {
4- declaration : true ,
5- rollup : {
6- emitCJS : true ,
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+ } ,
711 } ,
8- entries : [
9- 'src/index.ts' ,
10- 'src/cli.ts' ,
11- ] ,
12- } )
12+ } ) ;
Original file line number Diff line number Diff line change 88 "type" : " module" ,
99 "exports" : {
1010 "." : {
11- "import" : {
12- "types" : " ./dist/index.d.mts" ,
13- "default" : " ./dist/index.mjs"
14- },
15- "require" : {
16- "types" : " ./dist/index.d.cts" ,
17- "default" : " ./dist/index.cjs"
18- }
11+ "types" : " ./dist/index.d.mts" ,
12+ "default" : " ./dist/index.mjs"
1913 }
2014 },
21- "main" : " ./dist/index.cjs" ,
22- "module" : " ./dist/index.mjs" ,
23- "types" : " ./dist/index.d.ts" ,
15+ "types" : " ./dist/index.d.mts" ,
2416 "bin" : {
2517 "giget" : " ./dist/cli.mjs"
2618 },
You can’t perform that action at this time.
0 commit comments