Skip to content

Commit

Permalink
chore: update platformatic dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ruheni committed May 11, 2023
1 parent 148b9ca commit a05eccc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"author": "",
"license": "ISC",
"dependencies": {
"@platformatic/db": "0.22",
"@platformatic/service": "0.22",
"chalk": "5.1.0",
"commander": "9.4.1",
"execa": "6.1.0"
Expand All @@ -40,8 +42,7 @@
"vitest": "0.24.0"
},
"peerDependencies": {
"prisma": "3.9.x || 4.x",
"@platformatic/service": "*"
"prisma": "4.x"
},
"publishConfig": {
"access": "public"
Expand Down
11 changes: 7 additions & 4 deletions src/cli/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
import { Command } from "commander";
import { version } from "../../package.json";
import loadConfig from "@platformatic/service";
import { loadConfig } from '@platformatic/db/lib/load-config.mjs'

type CliInput = {
up: boolean;
down: boolean;
schema: string;
migrationsDir: string;
};
export default () => {

export default async () => {
const program = new Command();
const { configManager: { current } } = loadConfig({}, "")
const migrationsDir = current.migrations?.dir ?? "./migrations";

const { configManager: { current } } = await loadConfig({}, {})

const migrationsDir = current.migrations.dir ?? "./migrations";

program
.name("")
Expand Down

0 comments on commit a05eccc

Please sign in to comment.