(result, options)
| 97 | } |
| 98 | |
| 99 | async printResult(result, options) { |
| 100 | if (options.output) { |
| 101 | const filePath = options.output.startsWith('/') |
| 102 | ? options.output |
| 103 | : path.join(process.cwd(), options.output); |
| 104 | await this._fs.promises.writeFile(filePath, result); |
| 105 | } else { |
| 106 | this._logger.log(result); |
| 107 | } |
| 108 | } |
| 109 | } |
| 110 | export default StencilDebug; |