Repository navigation
Command to show what packages will be updated - #15
Merged
Merged
Conversation
Contributor
Author
There was a problem hiding this comment.
Printing this out as part of lerna publish
Contributor
There was a problem hiding this comment.
How about a nicer format like:
changedPackages.map(pkg => `- ${pkg}`).join('\n');
Contributor
Author
There was a problem hiding this comment.
Sounds good! although no babel on this (yet) - or we only support a certain node
Contributor
There was a problem hiding this comment.
@kittens is going to complain about the single quotes.
Contributor
Author
There was a problem hiding this comment.
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
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
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 publishright? We currently print it at the end.For babel babel/babel@v6.4.4...master