sneas / dist-link

A lightning-fast alternative to npm link which excludes node_modules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dist-link

version

A lightning-fast alternative to npm link which excludes node_modules.

Motivation

Developing React components with the help of npm link tool may produce an error:

Error: Invalid hook call. Hooks can only be called inside of the body of a function component.

The reason is react and react-dom packages are included into node_modules of the source package.

This project solves the above problem by eliminating node_modules folder from the source package link.

Installation

npm install -g @sneas/dist-link

Usage

Run dist-link in the root folder of a package you'd like to be linked.

Run dist-link package-name in the root folder of a project which is going to use the link.

About

A lightning-fast alternative to npm link which excludes node_modules

License:MIT License


Languages

Language:TypeScript 72.6%Language:JavaScript 25.8%Language:Shell 1.6%