Skip to content

Commit

Permalink
feat: codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Oct 25, 2023
1 parent eee0a17 commit 91973f6
Show file tree
Hide file tree
Showing 26 changed files with 998 additions and 131 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# kysely-migrate

[Kysely](https://github.com/kysely-org/kysely) migrations CLI
[Kysely](https://github.com/kysely-org/kysely) migrations and codegen CLI

## Installation

Expand All @@ -23,12 +23,13 @@ Usage:
$ kysely-migrate <command> [options]

Commands:
create create new migration
down migrate one step down
init create configuration file
list list migrations
to migrate to selected migration
up migrate one step up
codegen generate types from database metadata
create create new migration
down migrate one step down
init create configuration file
list list migrations
to migrate to selected migration
up migrate one step up

For more info, run any command with the `--help` flag:
$ kysely-migrate create --help
Expand Down
31 changes: 9 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kysely-migrate",
"description": "Kysely migrations CLI",
"description": "Kysely migrations and codegen CLI",
"version": "0.0.3",
"license": "MIT",
"repository": {
Expand Down Expand Up @@ -55,11 +55,6 @@
"kysely": ">=0.26.3",
"typescript": ">=5"
},
"peerDependenciesMeta": {
"typescript": {
"optional": true
}
},
"dependencies": {
"@clack/prompts": "^0.7.0",
"bundle-require": "^4.0.2",
Expand All @@ -71,17 +66,21 @@
"find-up": "^6.3.0",
"human-id": "^4.1.0",
"is-unicode-supported": "^1.3.0",
"kysely-codegen": "^0.11.0",
"mysql2": "^3.6.2",
"picocolors": "^1.0.0"
},
"devDependencies": {
"@biomejs/biome": "1.1.2",
"@changesets/changelog-github": "0.4.6",
"@changesets/cli": "^2.26.2",
"@types/fs-extra": "^11.0.3",
"@types/node": "^20.8.7",
"@vitest/coverage-v8": "^0.34.5",
"bun": "1.0.1",
"bun-types": "^1.0.3",
"execa": "^8.0.1",
"fs-extra": "^11.1.1",
"glob": "^10.3.10",
"knip": "^2.29.0",
"kysely": "^0.26.3",
Expand All @@ -91,27 +90,15 @@
"typescript": "5.2.2",
"vitest": "^0.34.5"
},
"contributors": [
"[email protected]"
],
"contributors": ["[email protected]"],
"funding": "https://github.com/sponsors/tmm",
"keywords": [
"kysely",
"cli",
"migrate",
"migrations"
],
"keywords": ["kysely", "cli", "migrate", "migrations", "codegen"],
"packageManager": "[email protected]",
"simple-git-hooks": {
"pre-commit": "pnpm format && pnpm lint:fix"
},
"knip": {
"entry": [
"src/**/*.ts!",
"src/exports/index.ts!"
],
"project": [
".scripts/**/*.ts"
]
"entry": ["src/**/*.ts!", "src/exports/index.ts!"],
"project": [".scripts/**/*.ts"]
}
}
Loading

0 comments on commit 91973f6

Please sign in to comment.