DEV Community

Discussion on: Publishing NestJS Packages with npm

Collapse
 
unicop profile image
unicop

@john Biundo

  1. For who prefer to use yarn, it will help if you will add yarn add link:../ for creating the symlink for the auto refresh.
  2. run on the package tsc -w will make it more easy for development to do changes in the package and auto-refresh the server automatically.
Collapse
 
wnbsmart profile image
Maroje Macola

@unicop thanks for the tip when using yarn :)

In my case, to make it work, I had to add symlink to the package itself, not the root folder in which reside both nestjs app & package (i.e. I executed yarn add link:../nestjs-package-starter)