Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

install-local-dependencies

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

install-local-dependencies

Yet another local dependency installer

  • 0.2.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
22
decreased by-92.2%
Maintainers
1
Weekly downloads
 
Created
Source

Install local dependencies

npm version dependencies Status devDependencies Status peerDependencies Status

Yet another local dependency installer (and watcher). Works with NPM, Yarn and PNPM.

install-local-dependencies checks your package.json and installs the listed local packages as they were installed from npm. This helps you to get a production-like installation of your locally developed package, without all the issues of symlinked packages (npm link), invalid peerDependencies, or different dependency instances in the project, and the development package (eg. React's Invalid Hook Call warnings).

Installation

$ npm install install-local-dependencies -g

Usage

Instead of $ (npm|yarn|pnpm) install, install your project dependencies with $ install-local-dependencies. It will check the local dependencies listed in your package.json, and install all of your project's dependencies, not only the local ones.

Once all is installed, you can continue developing your local package, the watch-local-dependencies script will watch and immediately copy the changed files to the node_modules folder.

CLI

# Install
$ install-local-dependencies

# Watcher
$ watch-local-dependencies

Example

package.json

{
  //...
  "dependencies": {
    "my-awesome-package": "file:../package-folder",
  },
  //...
}

Configuration

.localdependenciesrc

{
  "manager": "npm", // the package manager you are using for installing the packages (example: "npm" or "yarn" or "pnpm")
  "modules_dir": "node_modules", 
  "install_args": "", // extra arguments for the internal npm/yarn/pnpm install command (example: "--legacy-peer-deps")
  "types": ["dependencies"], // dependency types you want to handle with `install-local-dependencies` (these packages will also get installed, but in the regular way) (defaults to ["dependencies", "devDependencies"])
  "ignored_packages": [], // list of local packages you don't want to handle with `install-local-dependencies` (these packages will also get installed, but in the regular way)
}

Sponsored by: SRG Group Kft.

Keywords

FAQs

Package last updated on 30 Nov 2022

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