File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 3535 "format:check" : " prettier --check ." ,
3636 "prepublishOnly" : " pnpm run build" ,
3737 "build" : " tsup && tsc --emitDeclarationOnly --declaration" ,
38- "prepare" : " pnpm run build" ,
3938 "check" : " tsc" ,
4039 "test" : " vitest run"
4140 },
42- "type" : " module" ,
4341 "files" : [
4442 " dist" ,
4543 " src" ,
5250 "author" : " Hugging Face" ,
5351 "license" : " MIT" ,
5452 "browser" : {
55- "./src/utils/ FileBlob.ts" : false ,
53+ "./src/FileBlob.ts" : false ,
5654 "./dist/index.js" : " ./dist/browser/index.js" ,
5755 "./dist/index.mjs" : " ./dist/browser/index.mjs" ,
5856 "./dist/WebBlob.js" : " ./dist/browser/WebBlob.js" ,
Original file line number Diff line number Diff line change 22 "compilerOptions" : {
33 "allowSyntheticDefaultImports" : true ,
44 "lib" : [" ES2022" , " DOM" ],
5- "module" : " NodeNext " ,
6- "target " : " ESNext " ,
7- "moduleResolution " : " nodenext " ,
5+ "module" : " CommonJS " ,
6+ "moduleResolution " : " node " ,
7+ "target " : " ES2022 " ,
88 "forceConsistentCasingInFileNames" : true ,
99 "strict" : true ,
1010 "noImplicitAny" : true ,
1515 "declaration" : true ,
1616 "declarationMap" : true
1717 },
18- "include" : [" src" ],
18+ "include" : [" src" , " index.ts " ],
1919 "exclude" : [" dist" ]
2020}
Original file line number Diff line number Diff line change 11import type { Options } from "tsup" ;
22
33const baseConfig = {
4- entry : [ "./src/ index.ts" , "./src/WebBlob.ts" ] ,
4+ entry : [ "./index.ts" , "./src/WebBlob.ts" ] ,
55 format : [ "cjs" , "esm" ] ,
66 outDir : "dist" ,
77 clean : true ,
You can’t perform that action at this time.
0 commit comments