Socket
Socket
Sign inDemoInstall

@lerna/run

Package Overview
Dependencies
Maintainers
2
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lerna/run - npm Package Compare versions

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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc