Local Development

Build and test the library locally without the NG0203 trap.

This package is built with ng-packagr ; output goes to ./dist .

npm run build         # build the library to ./dist
npm run build:watch   # rebuild on change
npm run pack:local    # build + npm pack → ./dist/*.tgz

Avoiding the NG0203 trap

Instead, install the packed tarball — it has no nested Angular and behaves exactly like a real npm install:

# In the library
npm run pack:local

# In the consuming app
npm install /path/to/gallery/dist/angularforge-gallery-<version>.tgz