New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More →
Socket
Sign inDemoInstall
Socket

@team-griffin/lerna-scope

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@team-griffin/lerna-scope

Run scoped commands within lerna packages

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

lerna-scope

Run scoped commands within lerna packages

This is a super simple tool that lets you run scripts from within a package

Example

# we're currently in "project/packages/my-package"
lerna-scope test

this is the equivalent to writing

cd ../../
yarn lerna --scope=my-package exec yarn test
cd packages/my-package

Installation

npm i -g @team-griffin/lerna-scope

Usage

You can pass any valid lerna command and it will use it:

lerna-scope run someScript
lerna-scope exec someCommand
lerna-scope add someDependency

if you don't provide a lerna command, it will assume you want to do exec yarn. For example:

lerna-scope test
# equivalent to
lerna-scope exec yarn test

Prerequesits

  • You must be using lerna in your project (obviously)
  • By default, we use the locally-installed lerna (i.e. yarn lerna ...). If you want to use a globally installed version, you must provide a mode flag
  • By default, we assume your packages live in a packages directory. If you want to point to a different locaiton, you must provide a dir flag

Flags

mode

'local' | 'global' Whether to use a local installation of lerna or a global one. Set to local by default.

dir

string
The directory that your packages live in. packages by default.

FAQs

Package last updated on 05 Jun 2018

Did you know?

Socket

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.

Install

Related posts

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