A published library should support AoT compilation out of the box so users can build their application using AoT.. Compilation is managed by `ngc` instead of `tsc` and the NPM package is publish with `*.metadata.json` files.