(host: Tree, path: string)
| 99 | } |
| 100 | |
| 101 | function getTsSourceFile(host: Tree, path: string): ts.SourceFile { |
| 102 | const content = host.readText(path); |
| 103 | const source = ts.createSourceFile(path, content, ts.ScriptTarget.Latest, true); |
| 104 | |
| 105 | return source; |
| 106 | } |
| 107 | |
| 108 | const serviceWorkerSchematic: RuleFactory<ServiceWorkerOptions> = createProjectSchematic( |
| 109 | async (options, { project, workspace, tree, context: { logger } }) => { |
no test coverage detected