From ad3b929ebcf787641c16cc00aa4d599aa779f1c2 Mon Sep 17 00:00:00 2001 From: Iku-turso Date: Mon, 21 Mar 2022 16:18:08 +0200 Subject: [PATCH] Deprecate usages of explicit side effects in production code Signed-off-by: Iku-turso --- src/common/vars.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/common/vars.ts b/src/common/vars.ts index 1b9b9a92d1..63e441ed1a 100644 --- a/src/common/vars.ts +++ b/src/common/vars.ts @@ -72,11 +72,34 @@ const resourcesDir = lazyInitialized(() => ( : path.join(process.cwd(), "binaries", "client", normalizedPlatform) )); +/** + * @deprecated for being explicit side effect. + */ export const baseBinariesDir = lazyInitialized(() => path.join(resourcesDir.get(), normalizedArch)); + +/** + * @deprecated for being explicit side effect. + */ export const kubeAuthProxyBinaryName = getBinaryName("lens-k8s-proxy"); + +/** + * @deprecated for being explicit side effect. + */ export const helmBinaryName = getBinaryName("helm"); + +/** + * @deprecated for being explicit side effect. + */ export const helmBinaryPath = lazyInitialized(() => path.join(baseBinariesDir.get(), helmBinaryName)); + +/** + * @deprecated for being explicit side effect. + */ export const kubectlBinaryName = getBinaryName("kubectl"); + +/** + * @deprecated for being explicit side effect. + */ export const kubectlBinaryPath = lazyInitialized(() => path.join(baseBinariesDir.get(), kubectlBinaryName)); // Webpack build paths