UNPKG

@adocasts.com/dto

Version:

Easily make and generate DTOs from Lucid Models

20 lines (19 loc) 711 B
/* |-------------------------------------------------------------------------- | Configure hook |-------------------------------------------------------------------------- | | The configure hook is called when someone runs "node ace configure <package>" | command. You are free to perform any operations inside this function to | configure the package. | | To make things easier, you have access to the underlying "ConfigureCommand" | instance and you can use codemods to modify the source files. | */ export async function configure(command) { const codemods = await command.createCodemods(); await codemods.updateRcFile((rcFile) => { rcFile.addCommand('@adocasts.com/dto/commands'); }); }