@lerna/run
Advanced tools
Comparing version 5.5.2 to 5.5.3
27
index.js
@@ -222,11 +222,6 @@ /* eslint-disable */ | ||
prepNxOptions() { | ||
const { readNxJson } = require("nx/src/config/configuration"); | ||
const nxJson = readNxJson(); | ||
const nxJsonExists = existsSync(path.join(this.project.rootPath, "nx.json")); | ||
const useParallel = this.options.parallel && !nxJsonExists; | ||
const targetDependenciesAreDefined = | ||
Object.keys(nxJson.targetDependencies || nxJson.targetDefaults || {}).length > 0; | ||
const targetDependencies = | ||
this.toposort && !useParallel && !targetDependenciesAreDefined | ||
this.toposort && !this.options.parallel && !nxJsonExists | ||
? { | ||
@@ -254,3 +249,3 @@ [this.script]: [ | ||
*/ | ||
parallel: useParallel ? 999 : this.concurrency, | ||
parallel: this.options.parallel && !nxJsonExists ? 999 : this.concurrency, | ||
nxBail: this.bail, | ||
@@ -266,8 +261,22 @@ nxIgnoreCycles: !this.options.rejectCycles, | ||
if (this.options.parallel || this.options.sort !== undefined || this.options.includeDependencies) { | ||
if (this.options.parallel || this.options.sort !== undefined) { | ||
this.logger.warn( | ||
this.name, | ||
`"parallel", "sort", "no-sort", and "include-dependencies" are ignored when nx.json exists. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks for details.` | ||
`"parallel", "sort", and "no-sort" are ignored when nx.json exists. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks for details.` | ||
); | ||
} | ||
if (this.options.includeDependencies) { | ||
this.logger.info( | ||
this.name, | ||
`Using the "include-dependencies" option when nx.json exists will include both task dependencies detected by Nx and project dependencies detected by Lerna. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks#--include-dependencies for details.` | ||
); | ||
} | ||
if (this.options.ignore) { | ||
this.logger.info( | ||
this.name, | ||
`Using the "ignore" option when nx.json exists will exclude only tasks that are not determined to be required by Nx. See https://lerna.js.org/docs/recipes/using-lerna-powered-by-nx-to-run-tasks#--ignore for details.` | ||
); | ||
} | ||
} else { | ||
@@ -274,0 +283,0 @@ this.logger.verbose( |
{ | ||
"name": "@lerna/run", | ||
"version": "5.5.2", | ||
"version": "5.5.3", | ||
"description": "Run an npm script in each package that contains that script", | ||
@@ -36,14 +36,13 @@ "keywords": [ | ||
"dependencies": { | ||
"@lerna/command": "5.5.2", | ||
"@lerna/filter-options": "5.5.2", | ||
"@lerna/npm-run-script": "5.5.2", | ||
"@lerna/output": "5.5.2", | ||
"@lerna/profiler": "5.5.2", | ||
"@lerna/run-topologically": "5.5.2", | ||
"@lerna/timer": "5.5.2", | ||
"@lerna/validation-error": "5.5.2", | ||
"@lerna/command": "file:../../core/command", | ||
"@lerna/filter-options": "file:../../core/filter-options", | ||
"@lerna/npm-run-script": "file:../../utils/npm-run-script", | ||
"@lerna/output": "file:../../utils/output", | ||
"@lerna/profiler": "file:../../utils/profiler", | ||
"@lerna/run-topologically": "file:../../utils/run-topologically", | ||
"@lerna/timer": "file:../../utils/timer", | ||
"@lerna/validation-error": "file:../../core/validation-error", | ||
"fs-extra": "^9.1.0", | ||
"p-map": "^4.0.0" | ||
}, | ||
"gitHead": "6a0c3fb1cb0aad0f79e6110806af9f54058f5be0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
372
18214
4
- Removed@babel/code-frame@7.24.7(transitive)
- Removed@babel/helper-validator-identifier@7.24.7(transitive)
- Removed@babel/highlight@7.24.7(transitive)
- Removed@lerna/child-process@5.5.2(transitive)
- Removed@lerna/collect-updates@5.5.2(transitive)
- Removed@lerna/command@5.5.2(transitive)
- Removed@lerna/describe-ref@5.5.2(transitive)
- Removed@lerna/filter-options@5.5.2(transitive)
- Removed@lerna/filter-packages@5.5.2(transitive)
- Removed@lerna/get-npm-exec-opts@5.5.2(transitive)
- Removed@lerna/npm-run-script@5.5.2(transitive)
- Removed@lerna/output@5.5.2(transitive)
- Removed@lerna/package@5.5.2(transitive)
- Removed@lerna/package-graph@5.5.2(transitive)
- Removed@lerna/prerelease-id-from-version@5.5.2(transitive)
- Removed@lerna/profiler@5.5.2(transitive)
- Removed@lerna/project@5.5.2(transitive)
- Removed@lerna/query-graph@5.5.2(transitive)
- Removed@lerna/run-topologically@5.5.2(transitive)
- Removed@lerna/timer@5.5.2(transitive)
- Removed@lerna/validation-error@5.5.2(transitive)
- Removed@lerna/write-log-file@5.5.2(transitive)
- Removed@nodelib/fs.scandir@2.1.5(transitive)
- Removed@nodelib/fs.stat@2.0.5(transitive)
- Removed@nodelib/fs.walk@1.2.8(transitive)
- Removed@types/minimatch@3.0.5(transitive)
- Removed@types/parse-json@4.0.2(transitive)
- Removedansi-regex@5.0.1(transitive)
- Removedansi-styles@3.2.14.3.0(transitive)
- Removedaproba@2.0.0(transitive)
- Removedare-we-there-yet@3.0.1(transitive)
- Removedargparse@2.0.1(transitive)
- Removedarray-differ@3.0.0(transitive)
- Removedarray-union@2.1.0(transitive)
- Removedarrify@2.0.1(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbraces@3.0.3(transitive)
- Removedbuiltins@1.0.3(transitive)
- Removedcallsites@3.1.0(transitive)
- Removedchalk@2.4.24.1.2(transitive)
- Removedci-info@2.0.0(transitive)
- Removedclone-deep@4.0.1(transitive)
- Removedcolor-convert@1.9.32.0.1(transitive)
- Removedcolor-name@1.1.31.1.4(transitive)
- Removedcolor-support@1.1.3(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconsole-control-strings@1.1.0(transitive)
- Removedcosmiconfig@7.1.0(transitive)
- Removedcross-spawn@7.0.3(transitive)
- Removeddedent@0.7.0(transitive)
- Removeddelegates@1.0.0(transitive)
- Removeddetect-indent@5.0.06.1.0(transitive)
- Removeddir-glob@3.0.1(transitive)
- Removeddot-prop@6.0.1(transitive)
- Removedduplexer@0.1.2(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedeventemitter3@4.0.7(transitive)
- Removedexeca@5.1.1(transitive)
- Removedfast-glob@3.3.2(transitive)
- Removedfastq@1.17.1(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedgauge@4.0.4(transitive)
- Removedget-stream@6.0.1(transitive)
- Removedglob-parent@5.1.2(transitive)
- Removedglobby@11.1.0(transitive)
- Removedhas-flag@3.0.04.0.0(transitive)
- Removedhas-unicode@2.0.1(transitive)
- Removedhosted-git-info@3.0.8(transitive)
- Removedhuman-signals@2.1.0(transitive)
- Removedignore@5.3.2(transitive)
- Removedimport-fresh@3.3.0(transitive)
- Removedimurmurhash@0.1.4(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedis-ci@2.0.0(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedis-glob@4.0.3(transitive)
- Removedis-number@7.0.0(transitive)
- Removedis-obj@2.0.0(transitive)
- Removedis-plain-obj@1.1.02.1.0(transitive)
- Removedis-plain-object@2.0.4(transitive)
- Removedis-stream@2.0.1(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedisexe@2.0.0(transitive)
- Removedisobject@3.0.1(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjs-yaml@4.1.0(transitive)
- Removedjson-parse-even-better-errors@2.3.1(transitive)
- Removedkind-of@6.0.3(transitive)
- Removedlines-and-columns@1.2.4(transitive)
- Removedload-json-file@6.2.0(transitive)
- Removedlru-cache@6.0.0(transitive)
- Removedmake-dir@2.1.03.1.0(transitive)
- Removedmerge-stream@2.0.0(transitive)
- Removedmerge2@1.4.1(transitive)
- Removedmicromatch@4.0.8(transitive)
- Removedmimic-fn@2.1.0(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmultimatch@5.0.0(transitive)
- Removednpm-package-arg@8.1.1(transitive)
- Removednpm-run-path@4.0.1(transitive)
- Removednpmlog@6.0.2(transitive)
- Removedonetime@5.1.2(transitive)
- Removedp-finally@1.0.0(transitive)
- Removedp-queue@6.6.2(transitive)
- Removedp-timeout@3.2.0(transitive)
- Removedparent-module@1.0.1(transitive)
- Removedparse-json@5.2.0(transitive)
- Removedpath-key@3.1.1(transitive)
- Removedpath-type@4.0.0(transitive)
- Removedpicocolors@1.1.0(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedpify@4.0.1(transitive)
- Removedqueue-microtask@1.2.3(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedresolve-from@4.0.05.0.0(transitive)
- Removedreusify@1.0.4(transitive)
- Removedrun-parallel@1.2.0(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsemver@5.7.26.3.17.6.3(transitive)
- Removedset-blocking@2.0.0(transitive)
- Removedshallow-clone@3.0.1(transitive)
- Removedshebang-command@2.0.0(transitive)
- Removedshebang-regex@3.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedslash@3.0.0(transitive)
- Removedsort-keys@2.0.04.2.0(transitive)
- Removedstring-width@4.2.3(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedstrip-ansi@6.0.1(transitive)
- Removedstrip-bom@4.0.0(transitive)
- Removedstrip-final-newline@2.0.0(transitive)
- Removedstrong-log-transformer@2.1.0(transitive)
- Removedsupports-color@5.5.07.2.0(transitive)
- Removedthrough@2.3.8(transitive)
- Removedto-regex-range@5.0.1(transitive)
- Removedtype-fest@0.4.10.6.0(transitive)
- Removedtypedarray-to-buffer@3.1.5(transitive)
- Removedupath@2.0.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedvalidate-npm-package-name@3.0.0(transitive)
- Removedwhich@2.0.2(transitive)
- Removedwide-align@1.1.5(transitive)
- Removedwrite-file-atomic@2.4.33.0.34.0.2(transitive)
- Removedwrite-json-file@3.2.04.3.0(transitive)
- Removedwrite-pkg@4.0.0(transitive)
- Removedyallist@4.0.0(transitive)
- Removedyaml@1.10.2(transitive)
Updated@lerna/npm-run-script@file:../../utils/npm-run-script
Updated@lerna/run-topologically@file:../../utils/run-topologically
Updated@lerna/validation-error@file:../../core/validation-error