Skip to content

Commit d7400b6

Browse files
committed
Removing irrelevant function
1 parent 38adfdd commit d7400b6

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "schematics-utilities",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"author": "Nitay Neeman",
55
"description": "🛠️ Useful exported utilities for working with Schematics",
66
"homepage": "https://github.com/nitayneeman/schematics-utilities",

src/material/ast.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,3 @@ export function getStylesPath(host: Tree, project: Project): string {
8686

8787
throw new SchematicsException('No style files could be found into which a theme could be added');
8888
}
89-
90-
/** Wraps the internal find module from options with undefined path handling */
91-
export function findModuleFromOptionsWithPathHandling(host: Tree, options: any) {
92-
const workspace = getWorkspace(host);
93-
if (!options.project) {
94-
options.project = Object.keys(workspace.projects)[0];
95-
}
96-
97-
const project = workspace.projects[options.project];
98-
99-
if (options.path === undefined) {
100-
options.path = `/${project.root}/src/app`;
101-
}
102-
103-
return internalFindModule(host, options);
104-
}

0 commit comments

Comments
 (0)