UNPKG

584 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.NameParser = void 0;
4const core_1 = require("@angular-devkit/core");
5class 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}
17exports.NameParser = NameParser;