Skip to content

Commit

Permalink
Fixed filter for users who have not configured any filters in .laming…
Browse files Browse the repository at this point in the history
…tonrc.
  • Loading branch information
thekevinbrown committed May 14, 2019
1 parent 0725b71 commit 9f33430
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ export const buildAll = async (match?: string[]) => {
const errors = [];
let contracts = await glob('!(node_modules)/**/*.cpp');
// Cleanse ignored contracts
contracts = onlyMatches(contracts, match) || filterMatches(contracts);
contracts = filterMatches(onlyMatches(contracts, match || ['\\.cpp$']));

if (contracts.length === 0) {
console.error();
console.error('Could not find any smart contracts to build.');
Expand Down

0 comments on commit 9f33430

Please sign in to comment.