Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): refactor internal dependencies to support Yarn PnP (#645)
* fix(sqlite): add missing dependency fs-extra * fix(mariadb): add missing dependency @mikro-orm/core * fix(mariadb): add missing dependency @mikro-orm/knex * fix(core): add missing dependency @mikro-orm/entity-generator * fix(core): add missing dependency @mikro-orm/knex * fix(core): add missing dependency @mikro-orm/migrations * feat(knex): export knex * feat(knex): add requireModule helper * fix(sqlite): get knex from @mikro-orm/knex * fix(postgresql): get knex from @mikro-orm/knex * fix(mysql-base): get knex from @mikro-orm/knex * fix(mariadb): get knex from @mikro-orm/knex * chore: change root package name to avoid conflict * fix(cli): node_modules isn't guaranteed to exist * fix(core): add missing dependency tsconfig-paths * fix(core): add missing optional peer dependency ts-node * fix(core): require on behalf of the user * fix(core): get the schema generator from the driver * fix(core): require ts-node as config * fix(core): require tsconfig-paths from config * chore: update ignore comments * style(core): add spacing Co-authored-by: Martin Adámek <banan23@gmail.com> * refactor: add requireFrom helper * refactor: make core a peer dependency * docs(core): document requireFrom * refactor: move getSchemaGenerator to platform * fix(core): ensure absolute paths * refactor(mariadb): use knex from mysql-base * style: spaces not tabs Co-authored-by: Martin Adámek <banan23@gmail.com> * refactor(core): use path.resolve * test: fix cli helper tests * fix(core): handle folders in requireFrom * test: update getModuleVersion * test: mongodb throws on getSchemaGenerator Co-authored-by: Martin Adámek <banan23@gmail.com>
- Loading branch information
Showing
28 changed files
with
428 additions
and
387 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "mikro-orm", | ||
"name": "mikro-orm-root", | ||
"private": true, | ||
"workspaces": [ | ||
"packages/*" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export * from '@mikro-orm/knex'; | ||
export * from '@mikro-orm/mysql-base'; | ||
export * from './MariaDbConnection'; | ||
export * from './MariaDbDriver'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.