1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | Object.defineProperty(exports, "__esModule", { value: true });
|
10 | exports.getProjectMainFile = void 0;
|
11 | const schematics_1 = require("@angular-devkit/schematics");
|
12 | const project_targets_1 = require("./project-targets");
|
13 |
|
14 | function getProjectMainFile(project) {
|
15 | const buildOptions = project_targets_1.getProjectTargetOptions(project, 'build');
|
16 | if (!buildOptions.main) {
|
17 | throw new schematics_1.SchematicsException(`Could not find the project main file inside of the ` +
|
18 | `workspace config (${project.sourceRoot})`);
|
19 | }
|
20 | return buildOptions.main.toString();
|
21 | }
|
22 | exports.getProjectMainFile = getProjectMainFile;
|
23 |
|
\ | No newline at end of file |