mikestead / lerna-lifecycle-issue

Example of lerna postversion lifecycle being executed twice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lerna-lifecycle-issue

Example of lerna postversion lifecycle being executed twice.

Steps

  1. yarn
  2. yarn release

Expected

The version script should succeed and the postversion script fail.

Actual

Both version and postversion fail due to the npm-scripts lifecycle hooks executing the postversion when version is run, and then lerna executing postversion later, after the version has been committed.

About

Example of lerna postversion lifecycle being executed twice


Languages

Language:JavaScript 100.0%