How to use the ng-packagr.NgPackagr function in ng-packagr

To help you get started, we’ve selected a few ng-packagr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shlomiassaf / ngrid / tools / builders / ng-packagr / src / build / index.ts View on Github external
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;
      })
    )
  }
}
github shlomiassaf / ngrid / tools / builders / ng-packagr / src / build / index.ts View on Github external
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;
      })
    )
  }
}