()
| 104 | |
| 105 | class DenoRuntime extends JsRuntime { |
| 106 | getDenoJsonPath(): Promise<string> { |
| 107 | try { |
| 108 | return fs |
| 109 | .stat(pathModule.join(this.projectRootPath, "deno.json")) |
| 110 | .then(() => pathModule.join(this.projectRootPath, "deno.json")); |
| 111 | } catch { |
| 112 | return fs |
| 113 | .stat(pathModule.join(this.projectRootPath, "deno.jsonc")) |
| 114 | .then(() => pathModule.join(this.projectRootPath, "deno.jsonc")); |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | get id() { |
| 119 | return "deno"; |