1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.parseName = void 0;
|
4 | /**
|
5 | * @license
|
6 | * Copyright Google Inc. All Rights Reserved.
|
7 | *
|
8 | * Use of this source code is governed by an MIT-style license that can be
|
9 | * found in the LICENSE file at https://angular.io/license
|
10 | */
|
11 | // import { relative, Path } from "../../../angular_devkit/core/src/virtual-fs";
|
12 | const core_1 = require("@angular-devkit/core");
|
13 | function parseName(path, name) {
|
14 | const nameWithoutPath = core_1.basename(core_1.normalize(name));
|
15 | const namePath = core_1.dirname(core_1.join(core_1.normalize(path), name));
|
16 | return {
|
17 | name: nameWithoutPath,
|
18 | path: core_1.normalize('/' + namePath),
|
19 | };
|
20 | }
|
21 | exports.parseName = parseName;
|