(modulePath)
| 4 | const hsExt = '._hs'; |
| 5 | |
| 6 | export function run(modulePath) { |
| 7 | modulePath = path.resolve(modulePath); |
| 8 | const args = { module: { dir: path.dirname(modulePath), id: modulePath } }; |
| 9 | return Deno.readTextFile(modulePath) |
| 10 | .then(code => _hyperscript.evaluate(code, {}, args)) |
| 11 | .catch(e => console.error("Cannot execute file:", e)); |
| 12 | } |
| 13 | |
| 14 | _hyperscript.addFeature("import", function parseImport(parser) { |
| 15 | if (!parser.matchToken("import")) return; |
no test coverage detected