diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/metacoin/package.json | 3 | ||||
-rw-r--r-- | packages/metacoin/test/utils/config.ts | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/packages/metacoin/package.json b/packages/metacoin/package.json index 966c561c6..24194b6c4 100644 --- a/packages/metacoin/package.json +++ b/packages/metacoin/package.json @@ -7,7 +7,8 @@ "build:watch": "tsc -w", "lint": "tslint --project .", "clean": "shx rm -rf lib", - "prebuild": "run-s clean generate_contract_wrappers", + "prebuild": "run-s clean generate_contract_wrappers copy_artifacts", + "copy_artifacts": "copyfiles './artifacts/**/*' './contracts/**/*' ./lib", "build": "tsc", "test": "run-s build run_mocha", "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov", diff --git a/packages/metacoin/test/utils/config.ts b/packages/metacoin/test/utils/config.ts index 1b78cce2e..d3a830754 100644 --- a/packages/metacoin/test/utils/config.ts +++ b/packages/metacoin/test/utils/config.ts @@ -1,7 +1,9 @@ +import * as path from 'path'; + export const config = { networkId: 50, - artifactsDir: 'artifacts', - contractsDir: 'contracts', + artifactsDir: path.resolve(__dirname, '../../artifacts'), + contractsDir: path.resolve(__dirname, '../../contracts'), ganacheLogFile: 'ganache.log', mnemonic: 'concert load couple harbor equip island argue ramp clarify fence smart topic', }; |