File tree Expand file tree Collapse file tree 5 files changed +653
-407
lines changed Expand file tree Collapse file tree 5 files changed +653
-407
lines changed Original file line number Diff line number Diff line change 2424 "prettier-plugin-svelte" : " ^3.1.2" ,
2525 "semver" : " ^7.5.0" ,
2626 "tshy" : " ^3.0.2" ,
27- "tsup" : " ^6.7.0 " ,
28- "tsx" : " ^4.7.0 " ,
27+ "tsup" : " ^8.3.5 " ,
28+ "tsx" : " ^4.19.2 " ,
2929 "typescript" : " ^5.4.2" ,
3030 "vite" : " ^5.0.2" ,
3131 "vitest" : " ^0.34.6" ,
Original file line number Diff line number Diff line change 1+ export * from "./src/index" ;
Original file line number Diff line number Diff line change 2727 "import" : " ./dist/FileBlob.mjs"
2828 }
2929 },
30- "source" : " ./src/ index.ts" ,
30+ "source" : " ./index.ts" ,
3131 "scripts" : {
3232 "lint" : " eslint --quiet --fix --ext .cjs,.ts ." ,
3333 "lint:check" : " eslint --ext .cjs,.ts ." ,
3434 "format" : " prettier --write ." ,
3535 "format:check" : " prettier --check ." ,
3636 "prepublishOnly" : " pnpm run build" ,
37- "build" : " tsup && tsc --emitDeclarationOnly --declaration " ,
37+ "build" : " tsup" ,
3838 "check" : " tsc" ,
3939 "test" : " vitest run"
4040 },
Original file line number Diff line number Diff line change 11import type { Options } from "tsup" ;
22
33const baseConfig = {
4- entry : [ "./index.ts" , "./src/WebBlob.ts" ] ,
4+ entry : [ "./index.ts" /* , "./src/WebBlob.ts"*/ ] ,
55 format : [ "cjs" , "esm" ] ,
66 outDir : "dist" ,
77 clean : true ,
88} satisfies Options ;
99
1010const nodeConfig : Options = {
1111 ...baseConfig ,
12- entry : [ ...baseConfig . entry , "./src/FileBlob.ts" ] ,
12+ // entry: [...baseConfig.entry, "./src/FileBlob.ts"],
1313 platform : "node" ,
1414} ;
1515
1616const browserConfig : Options = {
1717 ...baseConfig ,
1818 platform : "browser" ,
19- target : "es2018 " ,
19+ target : "es2022 " ,
2020 splitting : true ,
2121 outDir : "dist/browser" ,
2222} ;
You can’t perform that action at this time.
0 commit comments