Skip to content

Commit

Permalink
Change toConsole to output table with comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rianbotha committed Apr 28, 2019
1 parent dd85409 commit 6277694
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const regex = /<!-- props-table-start -->[\s\S]*<!-- props-table-end -->/m;
const propsTable = buildPropsTable(filename);

if (toConsole) {
console.log(propsTable);
console.log('<!-- props-table-start -->\n' + propsTable + '<!-- props-table-end -->');
process.exit(1);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rianbotha/react-props-md-table",
"version": "3.0.2",
"version": "3.0.3",
"description": "A markdown table generator for React component props.",
"main": "index.js",
"bin": {
Expand Down

0 comments on commit 6277694

Please sign in to comment.