Skip to content

Commit

Permalink
Fix tables in status command from flowing over to the next line (#81)
Browse files Browse the repository at this point in the history
* Fix tables in status command from flowing over to the next line

* Add image to changeset summary
  • Loading branch information
emmatown authored and Noviny committed Jun 6, 2019
1 parent 29ff34e commit ef9be2d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .changeset/three-trainers-vanish/changes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"releases": [{ "name": "@changesets/cli", "type": "patch" }],
"dependents": []
}
3 changes: 3 additions & 0 deletions .changeset/three-trainers-vanish/changes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Fix tables in status command from flowing over to the next line

![changeset status --verbose output](https://user-images.githubusercontent.com/11481355/59011589-875d4300-8878-11e9-9e69-cada41f83261.png)
8 changes: 4 additions & 4 deletions packages/cli/src/commands/status/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function SimplePrint(type, releases) {
function verbosePrint(type, releases) {
const packages = releases.filter(r => r.type === type);
if (packages.length) {
logger.info(chalk`Packages to be bumped at {green ${type}}:\n`);
logger.info(chalk`Packages to be bumped at {green ${type}}`);

const columns = packages.map(({ name, version, changesets }) => [
chalk.green(name),
Expand All @@ -81,14 +81,14 @@ function verbosePrint(type, releases) {

const t1 = table(
[
{ value: "Package Name" },
{ value: "Package Name", width: 20 },
{ value: "New Version", width: 20 },
{ value: "Related Changeset Summaries" }
{ value: "Related Changeset Summaries", width: 70 }
],
columns,
{ paddingLeft: 1, paddingRight: 0, headerAlign: "center", align: "left" }
);
logger.log(t1.render());
logger.log(t1.render() + "\n");
} else {
logger.info(
chalk`Running release would release {red NO} packages as a {green ${type}}`
Expand Down

0 comments on commit ef9be2d

Please sign in to comment.