Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Make external ganache core work in cli
Browse files Browse the repository at this point in the history
  • Loading branch information
honestbonsai authored and davidmurdoch committed May 25, 2021
1 parent 0dcaadf commit 3b84851
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
16 changes: 15 additions & 1 deletion src/chains/filecoin/filecoin/webpack/webpack.node.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,22 @@ const config: webpack.Configuration = merge({}, base, {
"ipfs-http-client",
"ipfs-http-server",
"ipld-dag-cbor",
"bigint-buffer",
"leveldown",
"secp256k1"
"secp256k1",
"keccak",
{
"@ganache/core": path.resolve(
__dirname,
"../",
"dist",
"node",
"ganache.min.js"
)
}
],
plugins: [
new webpack.BannerPlugin({ banner: "#!/usr/bin/env node", raw: true })
],
module: {
rules: [
Expand Down
1 change: 1 addition & 0 deletions src/packages/ganache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"truffle"
],
"devDependencies": {
"@ganache/core": "^0.1.0",
"@ganache/cli": "^0.1.0",
"@ganache/core": "^0.1.0",
"@ganache/flavors": "^0.1.0",
Expand Down
12 changes: 9 additions & 3 deletions src/packages/ganache/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@
"compilerOptions": {
"outDir": "lib"
},
"include": ["index.ts", "src/**/*", "src/cli.ts"],
"include": [
"index.ts",
"src/**/*",
"src/cli.ts"
],
"paths": {
"@ganache/cli/src/cli": ["../cli/src/cli"]
"@ganache/cli/src/cli": [
"../cli/src/cli"
]
},
"references": [
{
Expand All @@ -25,4 +31,4 @@
"path": "../../chains/filecoin/filecoin"
}
]
}
}

0 comments on commit 3b84851

Please sign in to comment.