fix: improve app push for cli

This commit is contained in:
Ruben Fiszel
2024-01-17 23:17:00 +01:00
parent 8752dcbb19
commit e6de809ff2
+2 -2
View File
@@ -2,7 +2,6 @@
import { requireLogin, resolveWorkspace, validatePath } from "./context.ts";
import {
AppService,
AppWithLastVersion,
colors,
Command,
ListableApp,
@@ -25,12 +24,12 @@ export interface AppFile {
export async function pushApp(
workspace: string,
filePath: string,
app: AppFile | undefined,
newApp: AppFile,
message?: string
): Promise<void> {
const remotePath = removeType(filePath, "app");
// deleting old app if it exists in raw mode
let app = undefined;
try {
app = await AppService.getAppByPath({
workspace,
@@ -105,6 +104,7 @@ async function push(opts: GlobalOptions, filePath: string) {
await pushApp(
workspace.workspaceId,
filePath,
undefined,
parseFromFile(filePath)
);
console.log(colors.bold.underline.green("App pushed"));