ng-packagr
Version:
Compile and package Angular libraries in Angular Package Format (APF)
17 lines • 523 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.build = void 0;
const packagr_1 = require("../packagr");
/**
* Command running an "one-off" build.
*
* @stable
*/
const build = opts => {
if (!opts) {
throw new Error('No options provided to the build command.');
}
return (0, packagr_1.ngPackagr)().forProject(opts.project).withTsConfig(opts.config).build({ watch: opts.watch, poll: opts.poll });
};
exports.build = build;
//# sourceMappingURL=build.command.js.map