Skip to content

Commit 9d82b98

Browse files
committed
chore: update dependencies to version 0.1.17 and add MigrationHistoryCommand
1 parent e856f25 commit 9d82b98

4 files changed

Lines changed: 39 additions & 26 deletions

File tree

create-arkstack/src/data.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ export const depsToRemove = [
2525
]
2626

2727
export const depsToAdd = {
28-
'@arkstack/console-slim': '^0.1.16',
28+
'@arkstack/console-slim': '^0.1.17',
2929
}
3030

3131
export const depsList: Record<string, string> = {
32-
'@arkstack/common': '^0.1.16',
33-
'@arkstack/console': '^0.1.16',
34-
'@arkstack/contract': '^0.1.16',
35-
'@arkstack/driver-h3': '^0.1.16',
36-
'@arkstack/driver-express': '^0.1.65'
32+
'@arkstack/common': '^0.1.17',
33+
'@arkstack/console': '^0.1.17',
34+
'@arkstack/contract': '^0.1.17',
35+
'@arkstack/driver-h3': '^0.1.17',
36+
'@arkstack/driver-express': '^0.1.17'
3737
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { CliApp, MigrationHistoryCommand as Command } from 'arkormx'
2+
3+
export class MigrationHistoryCommand extends Command {
4+
async handle () {
5+
this.app.command = this
6+
7+
this.app = new CliApp()
8+
9+
return super.handle()
10+
}
11+
}

packages/console/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { MakeModelCommand } from './commands/MakeModelCommand'
1515
import { MakeResource } from './commands/MakeResource'
1616
import { MakeSeederCommand } from './commands/MakeSeederCommand'
1717
import { MigrateCommand } from './commands/MigrateCommand'
18+
import { MigrationHistoryCommand } from './commands/MigrationHistoryCommand'
1819
import { ModelsSyncCommand } from './commands/ModelsSyncCommand'
1920
import { RouteList } from './commands/RouteList'
2021
import { SeedCommand } from './commands/SeedCommand'
@@ -67,7 +68,8 @@ export const runConsoleKernel = async (options: RunConsoleOptions = {}) => {
6768
MigrateCommand,
6869
ModelsSyncCommand,
6970
SeedCommand,
70-
MakeCommand
71+
MakeCommand,
72+
MigrationHistoryCommand
7173
],
7274
discoveryPaths: [
7375
join(process.cwd(), 'src', 'app/console/commands/*.ts'),

pnpm-lock.yaml

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)