mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
[fix] Replace console.log with process.stdout.write
Use process.stdout.write instead of console.log to avoid no-console lint rule violations in CLI scripts that output to stdout.
This commit is contained in:
@@ -413,5 +413,4 @@ function formatChange(change) {
|
||||
const changes = compareApis(previousApi, currentApi)
|
||||
const changelog = formatChangelog(changes, previousVersion, currentVersion)
|
||||
|
||||
|
||||
console.log(changelog)
|
||||
process.stdout.write(changelog)
|
||||
|
||||
@@ -310,6 +310,5 @@ const sourceFile = ts.createSourceFile(
|
||||
|
||||
const apiSurface = extractApiSurface(sourceFile)
|
||||
|
||||
// Output as JSON
|
||||
|
||||
console.log(JSON.stringify(apiSurface, null, 2))
|
||||
// Output as JSON to stdout
|
||||
process.stdout.write(JSON.stringify(apiSurface, null, 2) + '\n')
|
||||
|
||||
Reference in New Issue
Block a user