Sitemap
1 min readMar 27, 2019

--

Fix for Continuous-Build of library in Angular workspace

For every generated library — Angular CLI updates the workspace tsconfig.json file to add 2 entries in path config

"path" : {
"lib1": ["dist/lib1"],
"lib1/*": ["dist/lib1/*"]
}

So whenever you change lib1 code — you need to build it manually using

ng build lib1

Instead of that, you can just update the lib1 path to point to lib1’s public_api and that will keep looking for any change in lib1 and reflect those changes immediately without any manual build

"path" : {
"lib1": ["projects/lib1/src/public_api"]
}

--

--

Ravi Roshan
Ravi Roshan

Written by Ravi Roshan

Principal Engineer @ Walmart Global Tech

No responses yet