()
| 27 | } |
| 28 | |
| 29 | async function writeDenoJSON() { |
| 30 | const packageJSON = resolvePath('package.json'); |
| 31 | const denoJSON = await resolvePath('deno.json'); |
| 32 | const pkg = await readJSON(packageJSON); |
| 33 | |
| 34 | if (pkg.dependencies) { |
| 35 | console.error('TODO: support dependencies key in createImports()'); |
| 36 | } |
| 37 | const imports = createImports(pkg.devDependencies); |
| 38 | |
| 39 | const tasks = createTasks(pkg.scripts); |
| 40 | |
| 41 | writeJSON(denoJSON, {imports, tasks}); |
| 42 | } |
| 43 | |
| 44 | async function main() { |
| 45 | await writeDenoJSON(); |
no test coverage detected