1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.NameParser = void 0;
|
4 | const core_1 = require("@angular-devkit/core");
|
5 | class NameParser {
|
6 | parse(options) {
|
7 | const nameWithoutPath = (0, core_1.basename)(options.name);
|
8 | const namePath = (0, core_1.dirname)((options.path === undefined ? '' : options.path)
|
9 | .concat('/')
|
10 | .concat(options.name));
|
11 | return {
|
12 | name: nameWithoutPath,
|
13 | path: (0, core_1.normalize)('/'.concat(namePath)),
|
14 | };
|
15 | }
|
16 | }
|
17 | exports.NameParser = NameParser;
|