Npm Link Dist Folder, This allows you to reference my-package locally (instead of the …
.
Npm Link Dist Folder, json file as a dependency. Neither. json into the dist/ folder and then run npm publish Note that npm link uses the global prefix (see npm prefix -g for its value). gitignore file (in your case you excluded the dist folder). json points "main" at the dist folder. The symlink will be created pointing to the dist folder instead. First run ng build to build your library project, then go under the dist folder and run npm lin k from there instead of the library root project. Here’s a practical guide to the main options, their pros and cons, and some handy When you npm publish, if you don't have an . It creates a symbolic link between a globally Let's assume you've compiled your library into a folder called dist/my-favorite-library. A symlink, short for symbolic link, is a shortcut that npm link is an npm command which, when used correctly, creates a link between projects to facilitate development in a local environment. dqyjuozjbwe3ylv6zvr1da36syxetw4dmdcw2sue4bgvhn