@truffle/compile-common
Advanced tools
Comparing version 0.2.6-alphaTez.1 to 0.2.6-alphaTez.2
23
index.js
@@ -36,3 +36,3 @@ const path = require("path"); | ||
Common.display = (paths, { quiet, working_directory, logger }, entryPoint) => { | ||
Common.display = (paths, { quiet, working_directory, events }, entryPoint) => { | ||
if (quiet !== true) { | ||
@@ -43,9 +43,18 @@ if (!Array.isArray(paths)) paths = Object.keys(paths); | ||
paths.sort().forEach(contract => { | ||
if (path.isAbsolute(contract)) | ||
contract = `.${path.sep}${path.relative(working_directory, contract)}`; | ||
if (contract.match(blacklistRegex)) return; | ||
logger.log(`> Compiling ${contract}`); | ||
const sources = paths | ||
.sort() | ||
.map(contract => { | ||
if (path.isAbsolute(contract)) | ||
contract = `.${path.sep}${path.relative( | ||
working_directory, | ||
contract | ||
)}`; | ||
if (contract.match(blacklistRegex)) return; | ||
return contract; | ||
}) | ||
.filter(contract => contract); | ||
events.emit("compile:sourcesToCompile", { | ||
sourceFileNames: sources, | ||
entryPoint | ||
}); | ||
if (entryPoint) logger.log(`> Using entry point "${entryPoint}"`); | ||
} | ||
@@ -52,0 +61,0 @@ }; |
{ | ||
"name": "@truffle/compile-common", | ||
"version": "0.2.6-alphaTez.1", | ||
"version": "0.2.6-alphaTez.2", | ||
"description": "Library for common compiler helpers", | ||
@@ -27,3 +27,3 @@ "author": "CruzMolina <7537712+CruzMolina@users.noreply.github.com>", | ||
}, | ||
"gitHead": "b17faa2e241cc504df4244a97e2869f55d31ba58" | ||
"gitHead": "f2be8e62d3f20d1e8d731cac4353d8ffeb233fd5" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8931
206