Skip to content

Commit

Permalink
Merge pull request #17 from ethstorage/syncpool
Browse files Browse the repository at this point in the history
Optimize time-consuming tasks
  • Loading branch information
iteyelmp authored Aug 15, 2024
2 parents 55bc307 + 306a1e4 commit 20f8078
Show file tree
Hide file tree
Showing 7 changed files with 237 additions and 186 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "eip-4844 blobs upload sdk",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"types": "types/index.d.ts",
"types": "index.d.ts",
"exports": {
".": {
"require": "./dist/index.cjs.js",
Expand All @@ -15,13 +15,15 @@
}
},
"scripts": {
"build": "rollup -c"
"build": "rollup -c",
"prepublishOnly": "npm run build"
},
"dependencies": {
"async-mutex": "^0.5.0",
"dotenv": "^16.4.5",
"ethers": "^6.13.1",
"kzg-wasm": "^0.4.0"
"kzg-wasm": "^0.4.0",
"workerpool": "^9.1.3"
},
"repository": {
"type": "git",
Expand Down
14 changes: 12 additions & 2 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,27 @@ export default [
}
],
plugins: [commonjs(), resolve()],
external: ["ethers", "kzg-wasm"]
external: ["ethers", "kzg-wasm", "workerpool"]
},
{
input: 'src/node/file.js',
output: {
file: 'dist/file.cjs.js',
format: 'cjs',
sourcemap: true
sourcemap: true,
},
plugins: [commonjs(), resolve()],
external: ["ethers"]
},
{
input: 'src/worker/worker.js',
output: {
file: 'dist/worker.cjs.js',
format: 'cjs',
sourcemap: true,
},
plugins: [commonjs(), resolve()],
external: ["kzg-wasm", "workerpool"]
},
];

Loading

0 comments on commit 20f8078

Please sign in to comment.