mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Deprecate usages of explicit side effects in production code
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
parent
e18cc7916d
commit
ad3b929ebc
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user