If you want to use the local version of the library in the catalog for development purposes, you can use npm link.
To create a symlink to your library in the global node_modules, navigate to your library's directory and run: npm-link
Then, in the catalog's directory, use npm link trustwell-ui
to link to the library:
Now, instead of using the library from npm registry, your catalog application will use your local version of the library.
If you want to remove the symlink, but keep the library as a dependency in your package.json
, you can just unlink your library.
navigate to your library's directory and run: npm-unlink
.
After unlinking, it's often a good idea to run npm install
in your catalog directory again to ensure all dependencies are in the correct state.