0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-10 23:01:26 -05:00

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 <my.burning@gmail.com>

* fix log

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
This commit is contained in:
Josh Kennedy 2025-02-12 06:14:44 -05:00 committed by GitHub
parent 9b65e1b359
commit fb3884074f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
An additional has been added during the build command to add clarity around output and buildOutput.

View file

@ -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)}`);