
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
@aw-web-design/lerna-run
Advanced tools
Lerna-Lite Run command will help to run npm script in each package workspace that contains that script
lerna run) - Run command CLI 🏃Optional package extracted from Lerna run command that will give us the ability to run npm script in each package of the workspace that contains that script.
This package was added mainly because NPM Workspaces don't yet support running NPM scripts in parallel and in topological order (they do have this RFC, so perhaps someday this package would become irrelevant :)).
# install globally
npm install -g @aw-web-design/lerna-run
# then use it (see usage below)
lerna run <script>
# OR use npx
npx lerna run <script>
$ lerna run <script> -- [..args] # runs npm run my-script in all packages that have it
$ lerna run test
$ lerna run build
# watch all packages and transpile on change, streaming prefixed output
$ lerna run --parallel watch
Run an npm script in each package of the workspace that contains that script. A double-dash (--) is necessary to pass dashed arguments to the script execution.
lerna run accepts all filter flags.
$ lerna run --scope my-component test
--npm-client <client>Must be an executable that knows how to run npm lifecycle scripts.
The default --npm-client is npm.
$ lerna run build --npm-client=yarn
May also be configured in lerna.json:
{
"command": {
"run": {
"npmClient": "yarn"
}
}
}
--run-dry-runDisplays the process command that would be performed without actually executing it. This could be helpful for troubleshooting.
$ lerna run watch --run-dry-run
--streamStream output from child processes immediately, prefixed with the originating package name. This allows output from different packages to be interleaved.
$ lerna run watch --stream
--parallelSimilar to --stream, but completely disregards concurrency and topological sorting, running a given command or script immediately in all matching packages with prefixed streaming output. This is the preferred flag for long-running processes such as npm run watch run over many packages.
$ lerna run watch --parallel
Note: It is advised to constrain the scope of this command when using the
--parallelflag, as spawning dozens of subprocesses may be harmful to your shell's equanimity (or maximum file descriptor limit, for example). YMMV
--no-bail# Run an npm script in all packages that contain it, ignoring non-zero (error) exit codes
$ lerna run --no-bail test
By default, lerna run will exit with an error if any script run returns a non-zero exit code.
Pass --no-bail to disable this behavior, running the script in all packages that contain it regardless of exit code.
--no-prefixDisable package name prefixing when output is streaming (--stream or --parallel).
This option can be useful when piping results to other processes, such as editor plugins.
--profileProfiles the script executions and produces a performance profile which can be analyzed using DevTools in a
Chromium-based browser (direct url: devtools://devtools/bundled/devtools_app.html). The profile shows a timeline of
the script executions where each execution is assigned to an open slot. The number of slots is determined by the
--concurrency option and the number of open slots is determined by --concurrency minus the number of ongoing
operations. The end result is a visualization of the parallel execution of your scripts.
The default location of the performance profile output is at the root of your project.
$ lerna run build --profile
Note: Lerna-Lite will only profile when topological sorting is enabled (i.e. without
--paralleland--no-sort).
--profile-location <location>You can provide a custom location for the performance profile output. The path provided will be resolved relative to the current working directory.
$ lerna run build --profile --profile-location=logs/profile/
FAQs
Lerna-Lite Run command will help to run npm script in each package workspace that contains that script
The npm package @aw-web-design/lerna-run receives a total of 0 weekly downloads. As such, @aw-web-design/lerna-run popularity was classified as not popular.
We found that @aw-web-design/lerna-run demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.