In the project directory, you can run:
Builds the app for production to the dist
folder.
Builds the app for development mode to the dist
folder.
Builds the app for development mode to the dist
folder and re build with each change in the project.
First step is run yarn build
You can first run below command at the root directory of the project under test. It will generate a tar file with the name [package-name]-[version].tgz.
yarn pack
Now, go to the root directory of target project where you want to consume it, and run below command.
yarn add [path to the tar file created above]
In root directory of the project run
yarn link
Now, go to the root directory of target project where you want to consume it, and run below command.
yarn link ui-lib