From a8662feaa2271b5cd96786bd472d969b9a0439cc Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Wed, 2 Oct 2024 09:56:17 -0600 Subject: [PATCH] fix: use default import from is-wsl --- src/config/config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config/config.ts b/src/config/config.ts index 46c856f7..f1f54e78 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -316,7 +316,8 @@ export class Config implements IConfig { this.valid = this.rootPlugin.valid this.arch = arch() === 'ia32' ? 'x86' : (arch() as any) - this.platform = (await import('is-wsl')) ? 'wsl' : getPlatform() + const {default: isWSL} = await import('is-wsl') + this.platform = isWSL ? 'wsl' : getPlatform() this.windows = this.platform === 'win32' this.bin = this.pjson.oclif.bin || this.name this.binAliases = this.pjson.oclif.binAliases