Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lerna to the latest version 🚀 #1101

Merged
merged 3 commits into from
May 23, 2017
Merged

Conversation

greenkeeper[bot]
Copy link
Contributor

@greenkeeper greenkeeper bot commented May 23, 2017

Version 2.0.0-rc.5 of lerna just got published.

Dependency lerna
Current Version 2.0.0-rc.4
Type devDependency

The version 2.0.0-rc.5 is not covered by your current version range.

Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.

I recommend you look into these changes and try to get onto the latest version of lerna.
Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.


Release Notes v2.0.0-rc.5

v2.0.0-rc.5 (2017-05-22)

This is the last release candidate.

We need to fix #789 before we can release v2.0.0. All contributions are appreciated!

💥 Breaking Change

  • #807 Change exit codes for updated and publish. (@koddsson)

    It is now possible to run lerna publish in CI unconditionally, only publishing when changes are actually detected, and never failing when it decides to not publish anything.

    Previously:

    • lerna publish when there are no updates to publish would throw an error
    • lerna updated when there are no updates would exit 0, making it ineffective as a chained filter (e.g., lerna updated && lerna publish)

    Now:

    • lerna publish when there are no updates is a no-op, exiting successfully with a helpful log message
    • lerna updated when there are no updates will exit non-zero (but not throw an error), enabling it to be an effective filter

🚀 Enhancement

  • #726 Add --only-updated option to exec and run subcommands. (@jameslnewell)

    When executing a script or command, only run the script or command on packages that have been updated since the last release. A package is considered "updated" using the same rules as lerna updated.

    lerna exec --only-updated -- ls -la
    lerna run --only-updated test
  • #795 Add --parallel flag to lerna exec. (@evocateur)

    With this flag, lerna exec will run the command in all filtered packages
    in parallel, completely ignoring concurrency and topological sorting.

    # transpile modules in all packages as changes occur
    lerna exec -- babel src -d lib -w
    

    # transpile watched modules only in package-foo
    lerna exec --scope package-foo -- babel src -d lib -w

    It is advised to constrain the scope of the command when running with this
    flag, as spawning dozens of subprocesses may be harmful to your shell's
    equanimity (or maximum file descriptor limit, for example). YMMV

  • #796 Add --parallel flag to lerna run. (@evocateur)

    This allows simpler invocation of watch scripts, with the caveat that concurrency and topological sorting are completely ignored. This is generally the intention when calling lerna run watch and other similar script targets, hence the additional flag.

    # the following commands are equivalent
    lerna run watch --concurrency=1000 --stream
    lerna run watch --parallel

    Package filtering (--scope and --ignore) is still available when this new flag is being used, and it is advised to narrow the scope of parallel execution when you have more than a dozen packages or so (YMMV).

  • #803 Skip git repo check by default in Commands which do not rely on git. (@noherczeg)

  • #824 Add json output to ls and updated commands. (@ricky)

    When run with --json, lerna updated and lerna ls will return an array of objects in the following format:

    [
      {
        "name": "package",
        "version": "1.0.0",
        "private": false
      }
    ]
  • #829 Prefix piped streams with rotating colors. (@evocateur)

🐛 Bug Fix

🏠 Internal

Committers: 6

Commits

The new version differs by 18 commits.

  • 31a98aa 2.0.0-rc.5
  • 26f4056 Update CHANGELOG for v2.0.0-rc5
  • f0b250a Make pkg argument optional for lerna diff (#831)
  • 1a8571c Add json output to ls and updated commands (#824)
  • a5ef53d Bump glob (#830)
  • 56568d3 Remove '-a' from git tag invocation (#815)
  • 20574b0 Prefix piped streams with rotating colors (#829)
  • 64203e5 Switch to fs-extra (#828)
  • ce95a26 Upgrade dependencies (#827)
  • 880fdf3 Change exit codes for updated and publish (#807)
  • 03eb4e9 tweaks [skip ci]
  • 22bad8b Add --only-updated option to exec and run subcommands (#726)
  • 64a01ac Skip git repo check in commands that do not rely on git (#803)
  • 7b72210 Do not ignore explicit node_modules in package paths (#799)
  • bb7cbf3 Disable progress bars when running in CI or non-interactive shell (#798)

There are 18 commits in total.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

@ndelangen
Copy link
Member

I will test this locally before merging

@codecov
Copy link

codecov bot commented May 23, 2017

Codecov Report

❗ No coverage uploaded for pull request base (master@fa3d19d). Click here to learn what that means.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1101   +/-   ##
=========================================
  Coverage          ?   12.73%           
=========================================
  Files             ?      199           
  Lines             ?     4475           
  Branches          ?      711           
=========================================
  Hits              ?      570           
  Misses            ?     3275           
  Partials          ?      630
Impacted Files Coverage Δ
lib/cli/lib/helpers.js 0% <0%> (ø)
addons/info/example/story.js 0% <0%> (ø)
addons/comments/src/stories/index.js 0% <0%> (ø)
lib/cli/lib/has_yarn.js 0% <0%> (ø)
...dons/storyshots/stories/directly_required/index.js 0% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fa3d19d...a593145. Read the comment docs.

@ndelangen ndelangen merged commit df7ce81 into master May 23, 2017
@ndelangen ndelangen deleted the greenkeeper/lerna-2.0.0-rc.5 branch May 23, 2017 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant