ngx-bootstrap
Version:
Angular Bootstrap
19 lines • 887 B
JavaScript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.getProjectTargetOptions = getProjectTargetOptions;
/** Resolves the architect options for the build target of the given project. */
function getProjectTargetOptions(project, buildTarget) {
var _a, _b;
if ((_b = (_a = project === null || project === void 0 ? void 0 : project.targets) === null || _a === void 0 ? void 0 : _a.get(buildTarget)) === null || _b === void 0 ? void 0 : _b.options) {
return project.targets.get(buildTarget).options;
}
throw new Error(`Cannot determine project target configuration for: ${buildTarget}.`);
}
//# sourceMappingURL=project-targets.js.map
;