jasonaden / broken-cli-path-builds

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Repro of #7714

This project simulates someone wanting to have a library next to their CLI application. The library sources are in the lib folder and can be built using ng-packagr.

Steps to reproduce:

  • npm run build:lib - this will create dist/lib which is the library code in Angular Package Format
  • npm run build:cli - this command fails due to not being able to find the library. However, this project is set up very similarly to Angular itself, which works with this type of relationship between dev and build sources.
  • npm run build:ngc - shows that running ngc directly using the tsconfig.app.json works fine

NOTE: The npm run build:cli can be made to work by changing the paths property in tsconfig.app.json to point to the dev sources: "paths": ["../lib"].

About


Languages

Language:TypeScript 76.3%Language:JavaScript 18.1%Language:HTML 4.7%Language:CSS 0.9%