La tarea general es envolver algunas bibliotecas UMD de terceros en una biblioteca Angular y mejorarlas con escritura fuerte.
Quiero evitar que el usuario de la biblioteca tenga que agregar manualmente las bibliotecas UMD en su proyecto e incluirlas mediante la etiqueta <script> , por ejemplo.
Considere el siguiente proyecto de ejemplo:
tsconfig.lib.json:
"extends": "../../tsconfig.json", "compilerOptions": { "outDir": "../../out-tsc/lib", "allowJs": true, "declaration": true, "declarationMap": true, "inlineSources": true, "types": [] }, "exclude": [ "src/test.ts", "**/*.spec.ts" ] }prueba-lib.servicio.ts:
import { Injectable } from '@angular/core'; import * as extLib from './external/externalLib'; @Injectable({ providedIn: 'root' }) export class TestLibService { private n: string = ''; constructor() { } getStringFromNumber(n: number) { this.n = extLib.getString(n); } } Al ejecutar ng build me sale el siguiente error: 
¿Qué me estoy perdiendo?