Testing npm modules locally

preview_player
Показать описание
Learn how to install and test local npm modules.

----
Video Suggestions:

----
Follow Me Online Here:

----
#benawad

----
#benawad
Рекомендации по теме
Комментарии
Автор

I import from the demo file which is in the same directory as the package:
import Picache from '../../dist/index.js';
You must have watch mode on in the package in case you're using typescript so it automatically builds everytime you change something in the package.

EverAfterBreak
Автор

when I do this, get errors about missing babel plugins in the local dependency

mikedev
Автор

Thanks for posting this video, I was having the exact same issue with testing a react component npm package that I am publishing

FictionsAndIllusions