![38% of CISOs Fear They’re Not Moving Fast Enough on AI](https://cdn.sanity.io/images/cgdhsj6q/production/faa0bc28df98f791e11263f8239b34207f84b86f-1024x1024.webp?w=400&fit=max&auto=format)
Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@purple/lerna-smart-run
Advanced tools
Lerna add-on for only running npm scripts for packages changed since previous branch-based tag
Lerna add-on for only running npm scripts for packages changed since previous tag
This package is a glorified wrapper around ordinary lerna run <script>
commands,
but it implements a system to control the order of execution and an automated, opionated
tagging system (based on git branches) that takes advantage of lerna's --since
option.
This package is intended for use in CI and CD pipelines, especially where sequential deploys are necessary, i.e., where one serverless resource needs to be deployed before the rest.
Invoke with smartRun <npm script>
, where <npm script>
is a script from the
scripts
section of the package.json
of one of your lerna packages.
Example:
smartRun test
Pass --tagOnSuccess
to generate a tag from the successful execution of the smart run.
This tag will be used on the following execution.
Pass --deleteTagOnSuccess
to delete the previous tag on the successful execution of
the smart run. If there was no previous tag this has no effect.
Pass --runFirst
to run a package's script before any others. If multiple packages are passed
to this option, they're run in sequence as well. Supports glob patterns.
Pass --runLast
to run a package's script after any others. If multiple packages are passed
to this option, they're run in sequence as well. Supports glob patterns.
Pass --scope
if you want to run the command for a package even if it hasn't changed, but one of its
dependencies has.
Pass --ignore
if you want to ignore a package, but you still want to run the command for
any of its dependents if they've changed.
If --deleteTag
is passed, this simply looks for the most recent tag generated by this
package and deletes it. After which the script exists. Example:
smartRun --deleteTag
This package is in an early, experimental stage, and is likely to change dramatically between different versions.
FAQs
Lerna add-on for only running npm scripts for packages changed since previous branch-based tag
The npm package @purple/lerna-smart-run receives a total of 394 weekly downloads. As such, @purple/lerna-smart-run popularity was classified as not popular.
We found that @purple/lerna-smart-run demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 16 open source maintainers 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.