Skip to content

Commit

Permalink
fix(transformers): filter only works with reports; closes #79
Browse files Browse the repository at this point in the history
`diff` and `list-rules` no longer work with `filter` transformer
  • Loading branch information
boneskull committed Feb 3, 2020
1 parent dab7fbb commit 8eccf9e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions packages/cli/src/commands/diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ export const builder = yargs =>
},
...getOptions(OPTIONS.OUTPUT, {sourceType: 'object'}),
...OPTIONS.JSON_TRANSFORM,
...OPTIONS.TABLE_TRANSFORM,
...OPTIONS.FILTER_TRANSFORM
...OPTIONS.TABLE_TRANSFORM
});

/**
Expand Down
3 changes: 1 addition & 2 deletions packages/cli/src/commands/list-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ export const builder = yargs =>
yargs.options({
...getOptions(OPTIONS.OUTPUT, {sourceType: 'object'}),
...OPTIONS.JSON_TRANSFORM,
...OPTIONS.TABLE_TRANSFORM,
...OPTIONS.FILTER_TRANSFORM
...OPTIONS.TABLE_TRANSFORM
});

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/transformers/src/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const debug = createDebugPipe('transformer', 'filter');
export const meta = {
description: 'Filters properties',
id: 'filter',
input: ['report', 'object'],
input: ['report'],
output: 'object'
};

Expand Down

0 comments on commit 8eccf9e

Please sign in to comment.