UNPKG

929 BJavaScriptView Raw
1"use strict";
2/**
3 * @license
4 * Copyright Google LLC All Rights Reserved.
5 *
6 * Use of this source code is governed by an MIT-style license that can be
7 * found in the LICENSE file at https://angular.io/license
8 */
9Object.defineProperty(exports, "__esModule", { value: true });
10exports.getProjectTargetOptions = void 0;
11/** Resolves the architect options for the build target of the given project. */
12function getProjectTargetOptions(project, buildTarget) {
13 var _a, _b;
14 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) {
15 return project.targets.get(buildTarget).options;
16 }
17 throw new Error(`Cannot determine project target configuration for: ${buildTarget}.`);
18}
19exports.getProjectTargetOptions = getProjectTargetOptions;
20//# sourceMappingURL=project-targets.js.map
\No newline at end of file