aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-04-02 17:22:19 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-04-02 17:35:03 +0800
commit9e81d3c87b693e10dc9de894da6eb8651b7ed547 (patch)
treeb267425c88fb4dffbf5dc4a874ee1a622ed54af0 /packages
parenta9b2838c5f2aef83b31fa7fd4232c87e674183dc (diff)
downloaddexon-0x-contracts-9e81d3c87b693e10dc9de894da6eb8651b7ed547.tar.gz
dexon-0x-contracts-9e81d3c87b693e10dc9de894da6eb8651b7ed547.tar.zst
dexon-0x-contracts-9e81d3c87b693e10dc9de894da6eb8651b7ed547.zip
Fix contracts and artifacts paths
Diffstat (limited to 'packages')
-rw-r--r--packages/metacoin/package.json3
-rw-r--r--packages/metacoin/test/utils/config.ts6
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',
};