(node: Node)
| 22 | }; |
| 23 | |
| 24 | export const hasExecutables = (node: Node): boolean => { |
| 25 | const executables = node.executables; |
| 26 | if (executables == null) { |
| 27 | return false; |
| 28 | } |
| 29 | const {files = {}, html = '', less = '', tsx = ''} = executables; |
| 30 | return ( |
| 31 | Object.keys(files).length > 0 || |
| 32 | html.trim() != '' || |
| 33 | less.trim() != '' || |
| 34 | tsx.trim() != '' |
| 35 | ); |
| 36 | }; |
| 37 | |
| 38 | const getImportMap = (html: string): {[specifier: string]: string} => |
| 39 | Object.assign( |
no outgoing calls
no test coverage detected
searching dependent graphs…