aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-05-22 08:00:10 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-05-23 06:20:34 +0800
commitd9907f227e2187441b5496e26d166fc7e289cdc6 (patch)
tree0341abde3cee79e44e75e75bf30fa193e7af52c0 /packages
parent08b08ef1d0fbff2da8b64524704cf1bc50f77f30 (diff)
downloaddexon-sol-tools-d9907f227e2187441b5496e26d166fc7e289cdc6.tar
dexon-sol-tools-d9907f227e2187441b5496e26d166fc7e289cdc6.tar.gz
dexon-sol-tools-d9907f227e2187441b5496e26d166fc7e289cdc6.tar.bz2
dexon-sol-tools-d9907f227e2187441b5496e26d166fc7e289cdc6.tar.lz
dexon-sol-tools-d9907f227e2187441b5496e26d166fc7e289cdc6.tar.xz
dexon-sol-tools-d9907f227e2187441b5496e26d166fc7e289cdc6.tar.zst
dexon-sol-tools-d9907f227e2187441b5496e26d166fc7e289cdc6.zip
Use a hidden directory for temp artifacts
Diffstat (limited to 'packages')
-rw-r--r--packages/sol-cov/src/artifact_adapters/sol_compiler_artifact_adapter.ts1
-rw-r--r--packages/sol-cov/src/artifact_adapters/truffle_artifact_adapter.ts2
2 files changed, 1 insertions, 2 deletions
diff --git a/packages/sol-cov/src/artifact_adapters/sol_compiler_artifact_adapter.ts b/packages/sol-cov/src/artifact_adapters/sol_compiler_artifact_adapter.ts
index f61364df6..138c35b1e 100644
--- a/packages/sol-cov/src/artifact_adapters/sol_compiler_artifact_adapter.ts
+++ b/packages/sol-cov/src/artifact_adapters/sol_compiler_artifact_adapter.ts
@@ -24,7 +24,6 @@ export class SolCompilerArtifactAdapter extends AbstractArtifactAdapter {
let sources = _.keys(artifact.sources);
sources = _.map(sources, relativeFilePath => path.resolve(this._sourcesPath, relativeFilePath));
const contractName = artifact.contractName;
- // We don't compute coverage for dependencies
const sourceCodes = _.map(sources, (source: string) => fs.readFileSync(source).toString());
const contractData = {
sourceCodes,
diff --git a/packages/sol-cov/src/artifact_adapters/truffle_artifact_adapter.ts b/packages/sol-cov/src/artifact_adapters/truffle_artifact_adapter.ts
index b9c9c4d42..36a31383d 100644
--- a/packages/sol-cov/src/artifact_adapters/truffle_artifact_adapter.ts
+++ b/packages/sol-cov/src/artifact_adapters/truffle_artifact_adapter.ts
@@ -19,7 +19,7 @@ export class TruffleArtifactAdapter extends AbstractArtifactAdapter {
this._sourcesPath = sourcesPath;
}
public async collectContractsDataAsync(): Promise<ContractData[]> {
- const artifactsDir = '0x-artifacts';
+ const artifactsDir = '.0x-artifacts';
const compilerOptions: CompilerOptions = {
contractsDir: this._sourcesPath,
artifactsDir,