To build an compile the typescript sources to javascript use:
npm install
npm run build
First build the package than run npm publish
navigate to the folder of your consuming project and run one of next commando's.
published:
npm install [email protected] --save
unPublished (not recommended):
npm install PATH_TO_GENERATED_PACKAGE --save
In your angular2 project:
TODO: paste example.