Skip to content

Commit c589399

Browse files
authored
fix(app-store-cli): incorrect type annotation (calcom#28319)
1 parent 2509116 commit c589399

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

packages/app-store-cli/src/build.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import { spawnSync } from "node:child_process";
22
import fs from "node:fs";
33
import path from "node:path";
44
import process from "node:process";
5-
import type { AppMeta } from "@calcom/types/App";
6-
import { AppMetaSchema } from "@calcom/types/AppMetaSchema";
5+
import { AppMetaSchema, type AppMetaType } from "@calcom/types/AppMetaSchema";
76
import chokidar from "chokidar";
87
// eslint-disable-next-line no-restricted-imports
98
import { debounce } from "lodash";
@@ -39,7 +38,7 @@ const getVariableName = (appName: string) => appName.replace(/[-./]/g, "_");
3938
// INFO: Handle stripe separately as it's an old app with different dirName than slug/appId
4039
const getAppId = (app: { name: string }) => (app.name === "stripepayment" ? "stripe" : app.name);
4140

42-
type App = Partial<AppMeta> & {
41+
type App = Partial<AppMetaType> & {
4342
name: string;
4443
path: string;
4544
};
@@ -82,7 +81,7 @@ function generateFiles() {
8281
for (let i = 0; i < appDirs.length; i++) {
8382
const configPath = path.join(APP_STORE_PATH, appDirs[i].path, "config.json");
8483
const metadataPath = path.join(APP_STORE_PATH, appDirs[i].path, "_metadata.ts");
85-
let app: AppMetaSchema;
84+
let app: Partial<AppMetaType>;
8685

8786
if (fs.existsSync(configPath)) {
8887
try {

0 commit comments

Comments
 (0)