Skip to content

Commit

Permalink
fix: use default import from is-wsl
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Oct 2, 2024
1 parent e7054d5 commit a8662fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a8662fe

Please sign in to comment.