Skip to content

Commit

Permalink
Improve the exports for the package
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Jul 24, 2023
1 parent aabe24d commit 602aa69
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
10 changes: 2 additions & 8 deletions packages/prover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,10 @@
"type": "module",
"exports": {
".": {
"node": {
"import": "./lib/index.js"
},
"browser": {
"import": "./lib/index.web.js"
},
"default": "./lib/index.js"
"import": "./lib/index.js"
},
"./browser": {
"import": "./lib/index.web.js"
"import": "./lib/browser/index.js"
}
},
"bin": {
Expand Down
3 changes: 3 additions & 0 deletions packages/prover/src/browser/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from "../interfaces.js";
export * from "../proof_provider/index.js";
export {createVerifiedExecutionProvider} from "../web3_provider.js";
2 changes: 0 additions & 2 deletions packages/prover/src/index.web.ts

This file was deleted.

4 changes: 1 addition & 3 deletions packages/prover/test/unit/web3_provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import {expect} from "chai";
import Web3 from "web3";
import {ethers} from "ethers";
import sinon from "sinon";
import {LCTransport} from "../../src/interfaces.js";
import {ProofProvider} from "../../src/proof_provider/proof_provider.js";
import {createVerifiedExecutionProvider} from "../../src/web3_provider.js";
import {createVerifiedExecutionProvider, ProofProvider, LCTransport} from "@lodestar/prover/browser";
import {ELRpc} from "../../src/utils/rpc.js";

describe("web3_provider", () => {
Expand Down

0 comments on commit 602aa69

Please sign in to comment.