import { ImportDriver } from '../../engine/code-writer/drivers/import.driver.js';
import { addToSharedModule, declareBackPackageModule, runGraphqlTypes, } from '../package-helpers.js';
export default async function install(ctx) {
    await ctx.install(['@nestjs/axios', 'axios']);
    declareBackPackageModule(ctx, 'SupportModule', '@app/modules/support/support.module');
    const sharedModule = ctx.sourceFile('app', 'shared.module.ts');
    ImportDriver.createImportItems(sharedModule, '@nestjs/axios', ['HttpModule']);
    addToSharedModule(sharedModule, 'imports', 'HttpModule');
    addToSharedModule(sharedModule, 'exports', 'HttpModule');
    sharedModule.saveSync();
    await runGraphqlTypes(ctx);
}
