From 496b6c541e394deb620250f904d80e4fbbc9fa20 Mon Sep 17 00:00:00 2001 From: Soham Sevak Date: Thu, 26 Oct 2023 23:27:56 +1030 Subject: [PATCH] fix: typescript compilation errors in ci --- src/assets/scripts/setEnv.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/assets/scripts/setEnv.ts b/src/assets/scripts/setEnv.ts index a9accdb..fe71f71 100644 --- a/src/assets/scripts/setEnv.ts +++ b/src/assets/scripts/setEnv.ts @@ -7,8 +7,8 @@ const { argv } = require("yargs"); require("dotenv").config(); const environment = argv.environment; -function writeFileUsingFS(targetPath, environmentFileContent) { - writeFile(targetPath, environmentFileContent, function (err) { +function writeFileUsingFS(targetPath: any, environmentFileContent: any) { + writeFile(targetPath, environmentFileContent, function (err: any) { if (err) { console.log(err); } @@ -43,7 +43,7 @@ const environmentFileContent = ` // This file was autogenerated by dynamically running setEnv.ts and using dotenv for managing API key secrecy export const environment = { production: ${isProduction}, - APP_ID: '${process.env.APP_ID}' + APP_ID: '${process.env["APP_ID"]}' }; `;