title: Build an Angular library from TypeScript sources and create a distribution-ready npm packagecollapse: true1. Create package.json like below ![[Pasted image 20220602160826.png]] ```ad-note `public_api.ts` is the entry file to the library's sources and must be placed next to `package.json` ```2. `$schema` enables JSON editing support (auto-completion for configuration) in IDEs. Add it in npm script: ```json { "scripts": { "build": "ng-packagr -p package.json" }}
title: How is it working in VI Library?There is an empty public-api.ts![[Pasted image 20220602163350.png]]- ![[Pasted image 20220602163755.png]]-