I'm trying to build an Angular 6 library for CI integration without integrate it into an Angular App. (for numerous reasons)
What i have done so far is:
- create a package.json in order to install all the lib's dependencies
- create an
angular.json
like regular angular6 app refering to ci files (see below) - duplicate all
ng-packages.\*.json
tong-package.ci.\*.json
and update their paths to refer to the right files and directories (node_modules, entryfiles, etc..) - duplicate all
ts-config.\*.json
totsconfig.ci.\*.json
and update their paths to refer to the right files and directories (src, dist, etc..)
I was expected by running ng build
to be able able to build the library but instead i have this message:
Versions of @angular/compiler-cli and typescript could not be determined.
( But all packages are installed; i check it twice)
Does anyone has ever tried to build its Angular 6 library without using the library inside an app?
Thx