MCPcopy Create free account
hub / github.com/bigcommerce/stencil-cli / printResult

Method printResult

lib/StencilDebug.js:99–108  ·  view source on GitHub ↗
(result, options)

Source from the content-addressed store, hash-verified

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}
110export default StencilDebug;

Callers 1

runMethod · 0.95

Calls 1

logMethod · 0.80

Tested by

no test coverage detected