diff --git a/scripts/buildSchema.js b/scripts/buildSchema.js index 71c99167fd..5fef90b1fd 100644 --- a/scripts/buildSchema.js +++ b/scripts/buildSchema.js @@ -44,9 +44,10 @@ try { await mkdir(path.dirname(TARGET_SCHEMA_PATH), {recursive: true}); await writeFile(TARGET_SCHEMA_PATH, JSON.stringify(schema, null, 2)); - console.log(`Wrote bundled ${schemaName}.yaml schema file to ${TARGET_SCHEMA_PATH}`); + process.stderr.write(`Wrote bundled ${schemaName}.yaml schema file to ${TARGET_SCHEMA_PATH}\n`); } catch (error) { - console.log(error); + process.stderr.write(error); + process.stderr.write("\n"); process.exit(1); } diff --git a/scripts/generateCliDoc.js b/scripts/generateCliDoc.js index eb8fb3cb54..c2f13202ba 100644 --- a/scripts/generateCliDoc.js +++ b/scripts/generateCliDoc.js @@ -184,10 +184,12 @@ function generateDoc() { try { writeFileSync("./docs/pages/CLI.md", content); } catch (err) { - console.error(`Failed to generate docs/pages/CLI.md: ${err.message}.`); + process.stderr.write(`Failed to generate docs/pages/CLI.md: ${err.message}.`); + process.stderr.write("\n"); throw err; } - console.log("Generated docs/pages/CLI.md"); + process.stderr.write("Generated docs/pages/CLI.md"); + process.stderr.write("\n"); } function splitString(temp) { diff --git a/scripts/hash.js b/scripts/hash.js index e0e18e270e..589b6be186 100644 --- a/scripts/hash.js +++ b/scripts/hash.js @@ -15,4 +15,5 @@ const fileBuffer = fs.readFileSync(filename); const hashSum = crypto.createHash("md5"); hashSum.update(fileBuffer); -console.log(hashSum.digest("hex")); +process.stderr.write(hashSum.digest("hex")); +process.stderr.write("\n");