Socket
Book a DemoInstallSign in
Socket

enforce-peer-dependencies

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enforce-peer-dependencies

Enforces peer dependencies from package.json

latest
Source
npmnpm
Version
1.0.12
Version published
Maintainers
1
Created
Source

Enforce Peer Dependencies

This package fixes a lot of the bugs associated with NPM Links.

Basically forces peerDependencies to be used for all node_modules.

This is primarily for development purposes.

Installation

yarn add enfore-peer-dependencies
npm i --save enfore-peer-dependencies

Usage

import 'enforce-peer-dependencies';
import 'enforce-peer-dependencies/debug'; // for debugging

Jest configuration.

To add to jest just add to the configuration jest.config.json

{
    "resolver": "enforce-peer-dependencies/jest" 
    "resolver": "enforce-peer-dependencies/debug-jest" // for debugging
}

Ceveats

Maybe in the future we can just do it for NPM Linked packages.

FAQs

Package last updated on 30 Jun 2020

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