@syncfusion/ej2-ng-base
Version:
A common package of Essential JS 2 base Angular libraries, methods and class definitions
18 lines (17 loc) • 604 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 });
function getProjectFromWorkspace(workspace, projectName) {
let project = workspace.projects[projectName || workspace.defaultProject];
if (!project) {
throw new Error(`Could not find project in workspace: ${projectName}`);
}
return project;
}
exports.getProjectFromWorkspace = getProjectFromWorkspace;
;