1 | ;
|
2 | /**
|
3 | * @license
|
4 | * Copyright Google LLC All Rights Reserved.
|
5 | *
|
6 | * Use of this source code is governed by an MIT-style license that can be
|
7 | * found in the LICENSE file at https://angular.io/license
|
8 | */
|
9 | Object.defineProperty(exports, "__esModule", { value: true });
|
10 | exports.pathFormat = void 0;
|
11 | const core_1 = require("@angular-devkit/core");
|
12 | exports.pathFormat = {
|
13 | name: 'path',
|
14 | formatter: {
|
15 | async: false,
|
16 | validate: (path) => {
|
17 | // Check path is normalized already.
|
18 | return path === (0, core_1.normalize)(path);
|
19 | // TODO: check if path is valid (is that just checking if it's normalized?)
|
20 | // TODO: check path is from root of schematics even if passed absolute
|
21 | // TODO: error out if path is outside of host
|
22 | },
|
23 | },
|
24 | };
|
25 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF0aC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2FuZ3VsYXJfZGV2a2l0L3NjaGVtYXRpY3Mvc3JjL2Zvcm1hdHMvcGF0aC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7Ozs7OztHQU1HOzs7QUFFSCwrQ0FBeUQ7QUFFNUMsUUFBQSxVQUFVLEdBQXdCO0lBQzdDLElBQUksRUFBRSxNQUFNO0lBQ1osU0FBUyxFQUFFO1FBQ1QsS0FBSyxFQUFFLEtBQUs7UUFDWixRQUFRLEVBQUUsQ0FBQyxJQUFZLEVBQUUsRUFBRTtZQUN6QixvQ0FBb0M7WUFDcEMsT0FBTyxJQUFJLEtBQUssSUFBQSxnQkFBUyxFQUFDLElBQUksQ0FBQyxDQUFDO1lBQ2hDLDJFQUEyRTtZQUMzRSxzRUFBc0U7WUFDdEUsNkNBQTZDO1FBQy9DLENBQUM7S0FDRjtDQUNGLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqI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