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
lerna run
doesn't execute peers in topological order
#2009
Comments
lerna run
doesn't execute in topological orderlerna run
doesn't execute peers in topological order
If they're monorepo siblings, why aren't the relationships expressed in |
In this case it's specific to front-end development, and in particular, Angular libraries. TL;DR: Listing them as Per their docs:
Maybe I'm misunderstanding, but I don't want these siblings to be released in lockstep. In other words I need to be able to manage and publish the |
I have similar issue where in there now when I try to run lerna run build Question - Is this supported in lernaJS ? |
packages Install local deps in project module#1, it works fine. |
@denver-HJS Quoting the quoted:
This is still the case with Lerna. Specify any |
@evocateur, thank you for reading that closer than I did! 😃 It does work correctly now when I've added the desired higher order dependency to the leaf packages' |
* feat: details panel, copy update * fix: add / * build: make core peer dep for components * feat: add PDF export * feat: port inspector into browser-ui * feat: port optimizer tab * feat: set autostep steps * feat: add stepsize setting * fix: evalFn on new states * fix: opt name * feat: roger mode! * fix: remove browser-ui 😄 * feat: port comp graph * build: bump monaco version * build: add clean scripts to packages and fix peerdep build order reference: lerna/lerna#2009 * feat: port readable variation logic * fix: format * fix: lint * fix: typecheck * fix: format * fix: test script * build: downgrade monaco-vim to work with monaco-editor@0.22.3 * fix: format * fix: resample once after prepareState * fix: everything is vite now except for docusaurus damnit * build: bump monaco vim back * fix: format * feat: add step size setting * docs: add IDE README * fix: format Co-authored-by: wodeni <wn2155@columbia.edu>
I have several packages, most of which only depend on the core package at the moment. Each package is individually built using the Angular CLI.
@denverhjs/core
@denverhjs/foo
@denverhjs/baz
@denverhjs/bat
Expected Behavior
Lerna can determine that
@denverhjs/core
must be built before any of the packages that list it in theirpackage.json
peerDependencies list.Current Behavior
Executing the build script yields the following error output:
Possible Solution
Execution proceeds without error when the command:
lerna run build --scope @denverhjs/core && lerna run build --ignore @denverhjs/core
However that is not sustainable as the dependency graph grows in depth.
Steps to Reproduce (for bugs)
npm run build
orlerna run build
lerna.json
Context
I'm trying to leverage this great library to provide a CI solution for an Angular monorepo that contains multiple Angular NPM packages.
Your Environment
lerna --version
npm --version
node --version
The text was updated successfully, but these errors were encountered: