Wednesday, 3 July 2024

HOW TO BUILD .TGZ LIBRARY FILE IN ANGULAR

 

STEP 1: Rename the existing version no in package.json (this is under src folder)

Example : 



STEP 2: Run the command        npm run build:lib


STEP 3: Run the command  cd dist

STEP 4: Run the command npm pack

STEP : Navigate dist folder .tgz file will be available.