(pkg, source)
| 59 | |
| 60 | |
| 61 | def gen_embedded_lines(pkg, source): |
| 62 | name = safe_name(pkg.name) |
| 63 | print('Embedding', source, 'as', name) |
| 64 | yield '// prettier-ignore\n' |
| 65 | for line in source.read_text().splitlines(): |
| 66 | yield (line.replace('module.exports=function', f'var {name}=function') |
| 67 | + ' // eslint-disable-line\n') |
| 68 | |
| 69 | |
| 70 | def build_mpljs(web_backend_path, license_path): |
no test coverage detected
searching dependent graphs…