From fb3884074f261523cd89fe6e1745a0e9c01198f2 Mon Sep 17 00:00:00 2001 From: Josh Kennedy <35467034+joshmkennedy@users.noreply.github.com> Date: Wed, 12 Feb 2025 06:14:44 -0500 Subject: [PATCH] Fix: Adds clarity around output setting log statement (#13212) * log to clarify buildOutput and output build command * adds changelog * labels log statement of what it is internally Co-authored-by: Emanuele Stoppa * fix log --------- Co-authored-by: Emanuele Stoppa --- .changeset/quiet-swans-tickle.md | 5 +++++ packages/astro/src/core/build/index.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/quiet-swans-tickle.md diff --git a/.changeset/quiet-swans-tickle.md b/.changeset/quiet-swans-tickle.md new file mode 100644 index 0000000000..905d948887 --- /dev/null +++ b/.changeset/quiet-swans-tickle.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +An additional has been added during the build command to add clarity around output and buildOutput. diff --git a/packages/astro/src/core/build/index.ts b/packages/astro/src/core/build/index.ts index d771ad2e99..9ac5590405 100644 --- a/packages/astro/src/core/build/index.ts +++ b/packages/astro/src/core/build/index.ts @@ -174,7 +174,8 @@ class AstroBuilder { await runHookBuildStart({ config: this.settings.config, logging: this.logger }); this.validateConfig(); - this.logger.info('build', `output: ${blue('"' + this.settings.buildOutput + '"')}`); + this.logger.info('build', `output: ${blue('"' + this.settings.config.output + '"')}`); + this.logger.info('build', `mode: ${blue('"' + (this.settings.buildOutput) + '"')}`); this.logger.info('build', `directory: ${blue(fileURLToPath(this.settings.config.outDir))}`); if (this.settings.adapter) { this.logger.info('build', `adapter: ${green(this.settings.adapter.name)}`);