@ngrx/schematics
Advanced tools
Comparing version 16.0.0-rc.0 to 16.0.0-rc.1
{ | ||
"name": "@ngrx/schematics", | ||
"version": "16.0.0-rc.0", | ||
"version": "16.0.0-rc.1", | ||
"description": "NgRx Schematics for Angular", | ||
@@ -5,0 +5,0 @@ "repository": { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.platformVersion = void 0; | ||
exports.platformVersion = '^16.0.0-rc.0'; | ||
exports.platformVersion = '^16.0.0-rc.1'; | ||
//# sourceMappingURL=libs-version.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isLib = exports.getProjectPath = exports.getProject = void 0; | ||
exports.getProjectMainFile = exports.isLib = exports.getProjectPath = exports.getProject = void 0; | ||
var config_1 = require("./config"); | ||
var schematics_1 = require("@angular-devkit/schematics"); | ||
function getProject(host, options) { | ||
@@ -35,2 +36,14 @@ var workspace = (0, config_1.getWorkspace)(host); | ||
exports.isLib = isLib; | ||
function getProjectMainFile(host, options) { | ||
if (isLib(host, options)) { | ||
throw new schematics_1.SchematicsException("Invalid project type"); | ||
} | ||
var project = getProject(host, options); | ||
var projectOptions = project.architect['build'].options; | ||
if (!(projectOptions === null || projectOptions === void 0 ? void 0 : projectOptions.main)) { | ||
throw new schematics_1.SchematicsException("Could not find the main file"); | ||
} | ||
return projectOptions.main; | ||
} | ||
exports.getProjectMainFile = getProjectMainFile; | ||
//# sourceMappingURL=project.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
385504
136
3904