Skip to content

Lerna run isn't running on packages after upgrading to v.3.14.x and above #2165

@alcferreira

Description

@alcferreira

Expected Behavior

It seems that lerna run isn't running on packages from a monorepo.
Until v3.13.4 it used to work fine

Current Behavior

It is not working after v3.14.x

Steps to Reproduce (for bugs)

  1. Clone this repo
  2. Install dependencies yarn
  3. Run yarn build > which will create a lib directory on every package
  4. Check out if the lib directory has been created for the alert package: /farmblocks/packages/alert/lib
  5. Remove this directory
  6. Upgrade lerna to the latest version (or v3.14.x) yarn add --dev lerna@latest -W
  7. Run yarn build again. The directory /farmblocks/packages/alert/lib should've been created but it was not.
lerna.json

<!-- Please paste your `lerna.json` here -->
{
  "lerna": "3.13.1",
  "packages": ["packages/*"],
  "version": "independent",
  "command": {
    "publish": {
      "conventionalCommits": true,
      "message": "chore(release): [ci skip] publish"
    }
  },
  "npmClient": "yarn",
  "useWorkspaces": true
}

Context

Your Environment

Executable Version
lerna --version 3.15.0
yarn --version 1.16.0
node --version 12.1.0
OS Version
macOS Mojave 10.14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions