File tree Expand file tree Collapse file tree 2 files changed +17
-20
lines changed Expand file tree Collapse file tree 2 files changed +17
-20
lines changed Original file line number Diff line number Diff line change @@ -6,25 +6,22 @@ await $`rm -rf dist`
66
77const external = [ 'fast-decode-uri-component' ]
88
9- await Promise . all ( [
10- // ? tsup esm
11- build ( {
12- entry : [ 'src/**/*.ts' ] ,
13- outDir : 'dist' ,
14- format : [ 'esm' , 'cjs' ] ,
15- target : 'node20' ,
16- minifySyntax : true ,
17- minifyWhitespace : false ,
18- minifyIdentifiers : false ,
19- splitting : false ,
20- sourcemap : false ,
21- cjsInterop : false ,
22- clean : true ,
23- bundle : false ,
24- external,
25- esbuildPlugins : [ fixImportsPlugin ( ) ]
26- } )
27- ] )
9+ await build ( {
10+ entry : [ 'src/**/*.ts' ] ,
11+ outDir : 'dist' ,
12+ format : [ 'esm' , 'cjs' ] ,
13+ target : 'node20' ,
14+ minifySyntax : true ,
15+ minifyWhitespace : false ,
16+ minifyIdentifiers : false ,
17+ splitting : false ,
18+ sourcemap : false ,
19+ cjsInterop : false ,
20+ clean : true ,
21+ bundle : false ,
22+ external,
23+ esbuildPlugins : [ fixImportsPlugin ( ) ]
24+ } )
2825
2926await $ `tsc --project tsconfig.dts.json`
3027
Original file line number Diff line number Diff line change 99 "build" : " bun build.ts" ,
1010 "release" : " npm run build && npm run test && npm publish --access public"
1111 },
12- "main" : " ./dist/cjs/ index.js" ,
12+ "main" : " ./dist/index.js" ,
1313 "types" : " ./dist/index.d.ts" ,
1414 "module" : " ./dist/index.js" ,
1515 "exports" : {
You can’t perform that action at this time.
0 commit comments