From c7b290a38028d678fafbe8347dc2ca4b82abda79 Mon Sep 17 00:00:00 2001 From: Faruk AYDIN Date: Fri, 7 Oct 2022 19:18:56 +0300 Subject: [PATCH] fix: dynamic import statements for get app --- packages/backend/src/helpers/get-app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/helpers/get-app.ts b/packages/backend/src/helpers/get-app.ts index 75913c45..da620bbf 100644 --- a/packages/backend/src/helpers/get-app.ts +++ b/packages/backend/src/helpers/get-app.ts @@ -40,7 +40,7 @@ async function getChildrenContentInDirectory( const filesInSubdirectory = fs.readdirSync(appSubdirectory); for (const filename of filesInSubdirectory) { - const filePath = join(appSubdirectory, filename, 'index.ts'); + const filePath = join(appSubdirectory, filename); const fileContent = await getFileContent(filePath, stripFuncs); childrenContent.push(fileContent); @@ -56,7 +56,7 @@ const getApp = async (appKey: string, stripFuncs = true) => { const appData: IApp = await getDefaultExport(`../apps/${appKey}`); appData.auth = await getFileContent( - `../apps/${appKey}/auth/index.ts`, + `../apps/${appKey}/auth`, stripFuncs ); appData.triggers = await getChildrenContentInDirectory(