Skip to content

Commit

Permalink
fix upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jun 4, 2024
1 parent b1720cf commit f36a671
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const upgrade = new Command()
.example("lume upgrade -g", "Upgrades to the latest stable version.")
.example("lume upgrade --dev", "Upgrades to the latest development version.")
.action(async ({ dev, version }) => {
const { upgrade } = await import("./cli/upgrade.ts");
const { default: upgrade } = await import("./cli/upgrade.ts");
await upgrade(dev, version);
});

Expand Down
9 changes: 2 additions & 7 deletions cli/upgrade.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import { upgrade } from "../deps/init.ts";

interface Options {
dev?: boolean;
version?: string;
}

export default function ({ dev, version }: Options) {
export default async function (dev?: boolean, version?: string) {
const process = upgrade({ path: ".", dev, version });
process.run();
await process.run();
}

0 comments on commit f36a671

Please sign in to comment.