summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.github/scripts/announce.mjs6
-rw-r--r--benchmark/bench/_template.js6
-rw-r--r--scripts/cmd/build.js6
3 files changed, 9 insertions, 9 deletions
diff --git a/.github/scripts/announce.mjs b/.github/scripts/announce.mjs
index 2e05a7ae8..df7304037 100755
--- a/.github/scripts/announce.mjs
+++ b/.github/scripts/announce.mjs
@@ -6,7 +6,7 @@ import { setOutput } from './utils.mjs';
const { GITHUB_REF = 'main' } = process.env;
const baseUrl = new URL(`https://github.com/withastro/astro/blob/${GITHUB_REF}/`);
-const emojis = ['šŸŽ‰', '🄳', 'šŸš€', 'šŸ§‘ā€šŸš€', 'šŸŽŠ', 'šŸ†', 'āœ…', '🤩', 'šŸ¤–', 'šŸ™Œ'];
+const emojis = ['šŸŽ‰', '🄳', 'šŸš€', 'šŸ§‘', 'šŸŽŠ', 'šŸ†', 'āœ…', '🤩', 'šŸ¤–', 'šŸ™Œ'];
const descriptors = [
'new releases',
'hot and fresh updates',
@@ -141,7 +141,7 @@ async function generateMessage() {
message += `\nAlso ${item(extraVerbs)}:`;
const remainingPackages = packages.filter((p) => p.name !== name);
- for (const { name, version, url } of remainingPackages) {
+ for (const { name, version, _url } of remainingPackages) {
message += `\n• \`${name}@${version}\``;
}
@@ -159,7 +159,7 @@ async function generateMessage() {
async function run() {
const content = await generateMessage();
- console.log(content);
+ console.info(content);
setOutput('DISCORD_MESSAGE', content);
}
diff --git a/benchmark/bench/_template.js b/benchmark/bench/_template.js
index 867ecf13b..ae96d72ad 100644
--- a/benchmark/bench/_template.js
+++ b/benchmark/bench/_template.js
@@ -6,7 +6,7 @@ export const defaultProject = 'project-name';
* Use `console.log` to report the results too. Logs that start with 10 `=`
* and end with 10 `=` will be extracted by CI to display in the PR comment.
* Usually after the first 10 `=` you'll want to add a title like `#### Test`.
- * @param {URL} projectDir
- * @param {URL} outputFile
+ * @param {URL} _projectDir
+ * @param {URL} _outputFile
*/
-export async function run(projectDir, outputFile) {}
+export async function run(_projectDir, _outputFile) {}
diff --git a/scripts/cmd/build.js b/scripts/cmd/build.js
index e1c712993..3fd24c1da 100644
--- a/scripts/cmd/build.js
+++ b/scripts/cmd/build.js
@@ -101,11 +101,11 @@ export default async function build(...args) {
console.error(dim(`[${date}] `) + red(error || result.errors.join('\n')));
} else {
if (result.warnings.length) {
- console.log(
- dim(`[${date}] `) + yellow('⚠ updated with warnings:\n' + result.warnings.join('\n')),
+ console.info(
+ dim(`[${date}] `) + yellow('! updated with warnings:\n' + result.warnings.join('\n')),
);
}
- console.log(dim(`[${date}] `) + green('āœ” updated'));
+ console.info(dim(`[${date}] `) + green('√ updated'));
}
});
},