@ngrx/data
Advanced tools
Comparing version 16.0.0-rc.0 to 16.0.0-rc.1
{ | ||
"name": "@ngrx/data", | ||
"version": "16.0.0-rc.0", | ||
"version": "16.0.0-rc.1", | ||
"description": "API management for NgRx", | ||
@@ -25,5 +25,5 @@ "repository": { | ||
"@angular/core": "^16.0.0", | ||
"@ngrx/store": "16.0.0-rc.0", | ||
"@ngrx/effects": "16.0.0-rc.0", | ||
"@ngrx/entity": "16.0.0-rc.0", | ||
"@ngrx/store": "16.0.0-rc.1", | ||
"@ngrx/effects": "16.0.0-rc.1", | ||
"@ngrx/entity": "16.0.0-rc.1", | ||
"rxjs": "^6.5.3 || ^7.5.0" | ||
@@ -30,0 +30,0 @@ }, |
"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
1934442
16209