@@ -2,8 +2,7 @@ import { spawnSync } from "node:child_process";
22import fs from "node:fs" ;
33import path from "node:path" ;
44import 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" ;
76import chokidar from "chokidar" ;
87// eslint-disable-next-line no-restricted-imports
98import { 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
4039const 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