1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | Object.defineProperty(exports, "__esModule", { value: true });
|
10 | exports.relativePathToWorkspaceRoot = void 0;
|
11 | const core_1 = require("@angular-devkit/core");
|
12 | function relativePathToWorkspaceRoot(projectRoot) {
|
13 | const normalizedPath = core_1.split(core_1.normalize(projectRoot || ''));
|
14 | if (normalizedPath.length === 0 || !normalizedPath[0]) {
|
15 | return '.';
|
16 | }
|
17 | else {
|
18 | return normalizedPath.map(() => '..').join('/');
|
19 | }
|
20 | }
|
21 | exports.relativePathToWorkspaceRoot = relativePathToWorkspaceRoot;
|