enforce-peer-dependencies
TypeScript icon, indicating that this package has built-in type declarations

1.0.12 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i enforce-peer-dependencies

Weekly Downloads

0

Version

1.0.12

License

MIT

Unpacked Size

53.7 kB

Total Files

14

Last publish

Collaborators

  • kevupton