Skip to content

Command to show what packages will be updated - #15

Merged
hzoo merged 5 commits into
lerna:masterfrom
hzoo:updated-command
Jan 17, 2016
Merged

hzoo merged 5 commits into
lerna:masterfrom
hzoo:updated-command

Conversation

@hzoo

@hzoo hzoo commented Jan 17, 2016

Copy link
Copy Markdown
Contributor

Fixes #12

New command: lerna updated (open to suggestions for the name: diff, changed, dryrun)
Add linting config from babel

There's some duplicated code (utility functions) that I didn't bother to share.

We should probably just print out the changed packages by default anyway when you run lerna publish right? We currently print it at the end.


For babel babel/babel@v6.4.4...master

screen shot 2016-01-16 at 10 39 45 pm

Comment thread lib/commands/publish.js Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Printing this out as part of lerna publish

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about a nicer format like:

changedPackages.map(pkg =>  `- ${pkg}`).join('\n');

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good! although no babel on this (yet) - or we only support a certain node

Comment thread lib/commands/publish.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kittens is going to complain about the single quotes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I forgot to run lint after I pasted your snippet - I just added travis which will run lint for now

hzoo added a commit that referenced this pull request Jan 17, 2016
Command to show what packages will be updated
@hzoo
hzoo merged commit 1e105f2 into lerna:master Jan 17, 2016
gigabo added a commit to gigabo/lerna that referenced this pull request Jan 18, 2017
* Add an option sieve for all commands

Allow config:

- At the top level of `lerna.json`
- In `commands.<command>` in `lerna.json`
- On the command-line

Each of those supercedes previous values.

Example:

```json
{
  "lerna": "x.x.x",
  "version": "1.2.0",
  "ignore": "unrelated-package",
  "commands": {
    "publish": {
      "ignore": "test-package"
    }
  }
}
```

This deprecates:

- `bootstrapConfig.ignore`
- `publishConfig.ignore`

These still work, with the _lowest_ precedence.  Their use triggers a warning.

* Use objectAssign for node 0.10 & 0.12 compatibility

* Factor out lernaJson default empty object

* Slicker legacy option handling courtesy of @rygine

* Just pass options to `buildPackageGraph`

Cleaner interface.

No need to send the whole command object through just for one method.

* Add tests for legacy options

* Add some explanation of the config sieve to the README
gigabo added a commit to gigabo/lerna that referenced this pull request Jan 19, 2017
* Add an option sieve for all commands

Allow config:

- At the top level of `lerna.json`
- In `commands.<command>` in `lerna.json`
- On the command-line

Each of those supercedes previous values.

Example:

```json
{
  "lerna": "x.x.x",
  "version": "1.2.0",
  "ignore": "unrelated-package",
  "commands": {
    "publish": {
      "ignore": "test-package"
    }
  }
}
```

This deprecates:

- `bootstrapConfig.ignore`
- `publishConfig.ignore`

These still work, with the _lowest_ precedence.  Their use triggers a warning.

* Use objectAssign for node 0.10 & 0.12 compatibility

* Factor out lernaJson default empty object

* Slicker legacy option handling courtesy of @rygine

* Just pass options to `buildPackageGraph`

Cleaner interface.

No need to send the whole command object through just for one method.

* Add tests for legacy options

* Add some explanation of the config sieve to the README
gigabo added a commit to gigabo/lerna that referenced this pull request Jan 19, 2017
* Add an option sieve for all commands

Allow config:

- At the top level of `lerna.json`
- In `commands.<command>` in `lerna.json`
- On the command-line

Each of those supercedes previous values.

Example:

```json
{
  "lerna": "x.x.x",
  "version": "1.2.0",
  "ignore": "unrelated-package",
  "commands": {
    "publish": {
      "ignore": "test-package"
    }
  }
}
```

This deprecates:

- `bootstrapConfig.ignore`
- `publishConfig.ignore`

These still work, with the _lowest_ precedence.  Their use triggers a warning.

* Use objectAssign for node 0.10 & 0.12 compatibility

* Factor out lernaJson default empty object

* Slicker legacy option handling courtesy of @rygine

* Just pass options to `buildPackageGraph`

Cleaner interface.

No need to send the whole command object through just for one method.

* Add tests for legacy options

* Add some explanation of the config sieve to the README
gigabo added a commit to gigabo/lerna that referenced this pull request Jan 28, 2017
* Add an option sieve for all commands

Allow config:

- At the top level of `lerna.json`
- In `commands.<command>` in `lerna.json`
- On the command-line

Each of those supercedes previous values.

Example:

```json
{
  "lerna": "x.x.x",
  "version": "1.2.0",
  "ignore": "unrelated-package",
  "commands": {
    "publish": {
      "ignore": "test-package"
    }
  }
}
```

This deprecates:

- `bootstrapConfig.ignore`
- `publishConfig.ignore`

These still work, with the _lowest_ precedence.  Their use triggers a warning.

* Use objectAssign for node 0.10 & 0.12 compatibility

* Factor out lernaJson default empty object

* Slicker legacy option handling courtesy of @rygine

* Just pass options to `buildPackageGraph`

Cleaner interface.

No need to send the whole command object through just for one method.

* Add tests for legacy options

* Add some explanation of the config sieve to the README
gigabo added a commit to gigabo/lerna that referenced this pull request Jan 30, 2017
* Add an option sieve for all commands

Allow config:

- At the top level of `lerna.json`
- In `commands.<command>` in `lerna.json`
- On the command-line

Each of those supercedes previous values.

Example:

```json
{
  "lerna": "x.x.x",
  "version": "1.2.0",
  "ignore": "unrelated-package",
  "commands": {
    "publish": {
      "ignore": "test-package"
    }
  }
}
```

This deprecates:

- `bootstrapConfig.ignore`
- `publishConfig.ignore`

These still work, with the _lowest_ precedence.  Their use triggers a warning.

* Use objectAssign for node 0.10 & 0.12 compatibility

* Factor out lernaJson default empty object

* Slicker legacy option handling courtesy of @rygine

* Just pass options to `buildPackageGraph`

Cleaner interface.

No need to send the whole command object through just for one method.

* Add tests for legacy options

* Add some explanation of the config sieve to the README
@lock

lock Bot commented Dec 28, 2018

Copy link
Copy Markdown

This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Dec 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants