From d9907f227e2187441b5496e26d166fc7e289cdc6 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Mon, 21 May 2018 17:00:10 -0700 Subject: Use a hidden directory for temp artifacts --- packages/sol-cov/src/artifact_adapters/sol_compiler_artifact_adapter.ts | 1 - packages/sol-cov/src/artifact_adapters/truffle_artifact_adapter.ts | 2 +- 2 files changed, 1 insertion(+), 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 { - const artifactsDir = '0x-artifacts'; + const artifactsDir = '.0x-artifacts'; const compilerOptions: CompilerOptions = { contractsDir: this._sourcesPath, artifactsDir, -- cgit v1.2.3