Please follow the steps below to package your library and test it locally in another application.
After running your build script, run npm pack
That will generate a .tgz
file. Example: oasis-masiv-navigators.tgz
Move the .tgz
file to the root of the app you want to test your library on.
// Example other-project scaffolding
--| src
--| mui-conf.js
--| oasis-masiv-navigators.tgz
--| package.json
Install the package by running npm install specifying the pack name. Example: npm i oasis-masiv-navigators.tgz