UNPKG

498 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.getProjectRootPath = void 0;
4const devkit_1 = require("@nrwl/devkit");
5function getProjectRootPath(tree, projectName) {
6 const { sourceRoot, projectType } = (0, devkit_1.readProjectConfiguration)(tree, projectName);
7 return (0, devkit_1.joinPathFragments)(sourceRoot, projectType === 'application' ? 'app' : 'lib');
8}
9exports.getProjectRootPath = getProjectRootPath;
10//# sourceMappingURL=project-type.js.map
\No newline at end of file