diff --git a/configure.ts b/configure.ts index 9073cb72..60e74cf1 100644 --- a/configure.ts +++ b/configure.ts @@ -102,6 +102,7 @@ export async function configure(command: Configure) { * Register provider */ await codemods.updateRcFile((rcFile) => { + rcFile.addCommand('@adonisjs/lucid/commands') rcFile.addProvider('@adonisjs/lucid/database_provider') }) diff --git a/test/configure.spec.ts b/test/configure.spec.ts index 12cfd99d..5db8595b 100644 --- a/test/configure.spec.ts +++ b/test/configure.spec.ts @@ -52,6 +52,7 @@ test.group('Configure', (group) => { await assert.fileExists('config/database.ts') await assert.fileExists('adonisrc.ts') + await assert.fileContains('adonisrc.ts', '@adonisjs/lucid/commands') await assert.fileContains('adonisrc.ts', '@adonisjs/lucid/database_provider') await assert.fileContains('config/database.ts', 'defineConfig({')