UNPKG

1.08 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const find_module_1 = require("@schematics/angular/utility/find-module");
4/**
5 * Find the module referred by a set of options passed to the schematics.
6 */
7function findModuleFromOptions(host, options) {
8 return find_module_1.findModuleFromOptions(host, options);
9}
10exports.findModuleFromOptions = findModuleFromOptions;
11/**
12 * Function to find the "closest" module to a generated file's path.
13 */
14function findModule(host, generateDir, moduleExt = exports.MODULE_EXT, routingModuleExt = exports.ROUTING_MODULE_EXT) {
15 return find_module_1.findModule(host, generateDir, moduleExt, routingModuleExt);
16}
17exports.findModule = findModule;
18/**
19 * Build a relative path from one file path to another file path.
20 */
21function buildRelativePath(from, to) {
22 return find_module_1.buildRelativePath(from, to);
23}
24exports.buildRelativePath = buildRelativePath;
25exports.MODULE_EXT = find_module_1.MODULE_EXT;
26exports.ROUTING_MODULE_EXT = find_module_1.ROUTING_MODULE_EXT;
27//# sourceMappingURL=find-module.js.map
\No newline at end of file