adonisjs / lucid

AdonisJS SQL ORM. Supports PostgreSQL, MySQL, MSSQL, Redshift, SQLite and many more
https://lucid.adonisjs.com/
MIT License
1.02k stars 189 forks source link

`@adonisjs/lucid/migration` is not exported #993

Closed vianaz closed 5 months ago

vianaz commented 5 months ago

Package version

20.0.0

Describe the bug

In the documentation has an explanation to how run a migration programmatically: https://lucid.adonisjs.com/docs/migrations#running-migrations-programmatically

But the path @adonisjs/lucid/migration is not exposed in package.json. So is not possible to do this import, to resolve this problem is just add the migration folder to exports in package.json.

e.g: I added the steps to reproduce in README on Reproduction repo

Reproduction repo

https://github.com/vianaz/migration-folder-bug