forked from mikro-orm/mikro-orm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): split project into multiple packages (mikro-orm#475)
This allows to have lighter production builds (e.g. do not ship ts-morph or knex when not used). Available packages: - `@mikro-orm/core` - `@mikro-orm/reflection` - `TsMorphMetadataProvider` - `@mikro-orm/cli` - CLI support - `@mikro-orm/knex` - SQL support - `@mikro-orm/entity-generator` - `@mikro-orm/migrations` - `@mikro-orm/mysql` - `@mikro-orm/mariadb` - `@mikro-orm/mysql-base` - `@mikro-orm/sqlite` - `@mikro-orm/postgresql` - `@mikro-orm/mongodb` For easier transition, meta package `mikro-orm` is still present, reexporting `core`, `reflection` and `cli` packages. BREAKING CHANGE: Some parts of the ORM now resides under their own packages. Default metadata provider has been changed to `ReflectMetadataProvider`.
- Loading branch information
Showing
359 changed files
with
5,273 additions
and
1,822 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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"packages": ["packages/*"], | ||
"version": "4.0.0-alpha.0", | ||
"command": { | ||
"version": { | ||
"conventionalCommits": true, | ||
"createRelease": "github", | ||
"message": "chore(release): %s" | ||
} | ||
}, | ||
"ignoreChanges": [ | ||
"**/tests/**", | ||
"**/*.md" | ||
], | ||
"npmClient": "yarn", | ||
"useWorkspaces": true | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,12 +0,0 @@ | ||
import { Platform } from './Platform'; | ||
import { MySqlSchemaHelper } from '../schema/MySqlSchemaHelper'; | ||
|
||
export class MySqlPlatform extends Platform { | ||
|
||
protected readonly schemaHelper = new MySqlSchemaHelper(); | ||
|
||
getDefaultCharset(): string { | ||
return 'utf8mb4'; | ||
} | ||
|
||
} | ||
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
node_modules | ||
src | ||
tests | ||
coverage | ||
temp | ||
yarn-error.log | ||
data | ||
tsconfig.* |
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"name": "@mikro-orm/cli", | ||
"version": "4.0.0-alpha.0", | ||
"description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.", | ||
"main": "dist/index.js", | ||
"typings": "dist/index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://[email protected]/mikro-orm/mikro-orm.git" | ||
}, | ||
"keywords": [ | ||
"orm", | ||
"mongo", | ||
"mongodb", | ||
"mysql", | ||
"mariadb", | ||
"postgresql", | ||
"sqlite", | ||
"sqlite3", | ||
"ts", | ||
"typescript", | ||
"js", | ||
"javascript", | ||
"entity", | ||
"ddd", | ||
"mikro-orm", | ||
"unit-of-work", | ||
"data-mapper", | ||
"identity-map" | ||
], | ||
"author": "Martin Adámek", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/mikro-orm/mikro-orm/issues" | ||
}, | ||
"homepage": "https://mikro-orm.io", | ||
"bin": { | ||
"mikro-orm": "./dist/cli.js" | ||
}, | ||
"engines": { | ||
"node": ">= 10.13.0" | ||
}, | ||
"scripts": { | ||
"build": "yarn clean && yarn compile", | ||
"clean": "rimraf ./dist", | ||
"compile": "tsc -p tsconfig.build.json" | ||
}, | ||
"dependencies": { | ||
"@mikro-orm/core": "^4.0.0-alpha.0", | ||
"@mikro-orm/knex": "^4.0.0-alpha.0", | ||
"@mikro-orm/entity-generator": "^4.0.0-alpha.0", | ||
"chalk": "^4.0.0", | ||
"cli-highlight": "^2.1.4", | ||
"cli-table3": "^0.6.0", | ||
"fs-extra": "^9.0.0", | ||
"yargonaut": "^1.1.4", | ||
"yargs": "^15.3.1" | ||
} | ||
} |
Oops, something went wrong.