Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
run(builderConfig: BuilderConfiguration): Observable {
const { build, watch } = ngPackagr.NgPackagr.prototype;
ngPackagr.NgPackagr.prototype.build = function (this: ngPackagr.NgPackagr) {
this.withProviders([CUSTOM_COMPILE_NGC_TRANSFORM]);
return build.call(this);
}
ngPackagr.NgPackagr.prototype.watch = function (this: ngPackagr.NgPackagr) {
this.withProviders([CUSTOM_COMPILE_NGC_TRANSFORM]);
return watch.call(this);
}
return super.run(builderConfig).pipe(
tap( buildEvent => {
ngPackagr.NgPackagr.prototype.build = build;
ngPackagr.NgPackagr.prototype.watch = watch;
})
)
}
}
run(builderConfig: BuilderConfiguration): Observable {
const { build, watch } = ngPackagr.NgPackagr.prototype;
ngPackagr.NgPackagr.prototype.build = function (this: ngPackagr.NgPackagr) {
this.withProviders([CUSTOM_COMPILE_NGC_TRANSFORM]);
return build.call(this);
}
ngPackagr.NgPackagr.prototype.watch = function (this: ngPackagr.NgPackagr) {
this.withProviders([CUSTOM_COMPILE_NGC_TRANSFORM]);
return watch.call(this);
}
return super.run(builderConfig).pipe(
tap( buildEvent => {
ngPackagr.NgPackagr.prototype.build = build;
ngPackagr.NgPackagr.prototype.watch = watch;
})
)
}
}