@@ -22,7 +22,7 @@ import {
2222 presets ,
2323 updateTSConfigForFramework ,
2424} from '../../core/config/tsconfig.js' ;
25- import type { Logger } from '../../core/logger/core.js' ;
25+ import type { AstroLogger } from '../../core/logger/core.js' ;
2626import * as msg from '../../core/messages/runtime.js' ;
2727import { printHelp } from '../../core/messages/runtime.js' ;
2828import { appendForwardSlash } from '../../core/path.js' ;
@@ -652,7 +652,7 @@ async function updateAstroConfig({
652652 configURL : URL ;
653653 mod : ProxifiedModule < any > ;
654654 flags : Flags ;
655- logger : Logger ;
655+ logger : AstroLogger ;
656656 logAdapterInstructions : boolean ;
657657} ) : Promise < UpdateResult > {
658658 const input = await fs . readFile ( fileURLToPath ( configURL ) , { encoding : 'utf-8' } ) ;
@@ -713,7 +713,7 @@ async function updatePackageJsonOverrides({
713713} : {
714714 configURL : URL ;
715715 flags : Flags ;
716- logger : Logger ;
716+ logger : AstroLogger ;
717717 overrides : Record < string , string > ;
718718} ) : Promise < UpdateResult > {
719719 const pkgURL = new URL ( './package.json' , configURL ) ;
@@ -774,7 +774,7 @@ async function updatePackageJsonScripts({
774774} : {
775775 configURL : URL ;
776776 flags : Flags ;
777- logger : Logger ;
777+ logger : AstroLogger ;
778778 scripts : Record < string , string > ;
779779} ) : Promise < UpdateResult > {
780780 const pkgURL = new URL ( './package.json' , configURL ) ;
@@ -877,7 +877,7 @@ async function tryToInstallIntegrations({
877877 integrations : IntegrationInfo [ ] ;
878878 cwd ?: string ;
879879 flags : Flags ;
880- logger : Logger ;
880+ logger : AstroLogger ;
881881} ) : Promise < UpdateResult > {
882882 const packageManager = await detect ( {
883883 cwd,
@@ -950,7 +950,7 @@ async function tryToInstallIntegrations({
950950async function validateIntegrations (
951951 integrations : string [ ] ,
952952 flags : yargsParser . Arguments ,
953- logger : Logger ,
953+ logger : AstroLogger ,
954954) : Promise < IntegrationInfo [ ] > {
955955 // First, validate all package names to prevent command injection
956956 for ( const integration of integrations ) {
@@ -1069,7 +1069,7 @@ async function validateIntegrations(
10691069
10701070async function updateTSConfig (
10711071 cwd = process . cwd ( ) ,
1072- logger : Logger ,
1072+ logger : AstroLogger ,
10731073 integrationsInfo : IntegrationInfo [ ] ,
10741074 flags : Flags ,
10751075 options ?: { addIncludes ?: string [ ] } ,
@@ -1193,7 +1193,7 @@ async function askToContinue({
11931193 logger,
11941194} : {
11951195 flags : Flags ;
1196- logger : Logger ;
1196+ logger : AstroLogger ;
11971197} ) : Promise < boolean > {
11981198 if ( flags . yes || flags . y ) return true ;
11991199 if ( ! hasHintedAboutYesFlag ) {
@@ -1237,7 +1237,7 @@ function getDiffContent(input: string, output: string): string | null {
12371237
12381238async function setupIntegrationConfig ( opts : {
12391239 root : URL ;
1240- logger : Logger ;
1240+ logger : AstroLogger ;
12411241 flags : Flags ;
12421242 integrationName : string ;
12431243 possibleConfigFiles : string [ ] ;
0 commit comments