From e58efe3d7f2c7248b44f743cdf58067b1ab20178 Mon Sep 17 00:00:00 2001 From: Willie Ruemmele Date: Wed, 26 Jul 2023 15:53:53 -0600 Subject: [PATCH] fix: use scopedEnvVarKeys for bin aliases --- src/hooks/init.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/init.ts b/src/hooks/init.ts index 79e591c4..22472ac7 100644 --- a/src/hooks/init.ts +++ b/src/hooks/init.ts @@ -28,8 +28,8 @@ export const init: Interfaces.Hook<'init'> = async function (opts) { const autoupdateEnv = { ...process.env, - [this.config.scopedEnvVarKey('TIMESTAMPS')]: '1', - [this.config.scopedEnvVarKey('SKIP_ANALYTICS')]: '1', + ...this.config.scopedEnvVarKeys('TIMESTAMPS').map(key => [key: '1']), + ...this.config.scopedEnvVarKeys('SKIP_ANALYTICS').map(key => [key: '1']), } async function autoupdateNeeded(): Promise {