oclif 4.4.6 → 4.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,7 @@ if exist "%LOCALAPPDATA%\\${config.dirname}\\client\\bin\\${additionalCLI ?? con
22
22
  "%~dp0\\..\\client\\bin\\node.exe" "%~dp0\\..\\client\\${additionalCLI ? `${additionalCLI}\\bin\\run` : 'bin\\run'}" %*
23
23
  )
24
24
  `,
25
- nsis: ({ arch, config, customization, defenderOptionDefault, hideDefenderOption, }) => `!include MUI2.nsh
25
+ nsis: ({ arch, config, customization, defenderOptional, hideDefenderOption, }) => `!include MUI2.nsh
26
26
 
27
27
  !define Version '${config.version.split('-')[0]}'
28
28
  Name "${config.name}"
@@ -75,7 +75,7 @@ Section "Set PATH to ${config.name}"
75
75
  Call AddToPath
76
76
  SectionEnd
77
77
 
78
- Section ${defenderOptionDefault ? '' : '/o '}"${hideDefenderOption ? '-' : ''}Add %LOCALAPPDATA%\\${config.dirname} to Windows Defender exclusions (highly recommended for performance!)"
78
+ Section ${defenderOptional ? '/o ' : ''}"${hideDefenderOption ? '-' : ''}Add %LOCALAPPDATA%\\${config.dirname} to Windows Defender exclusions (highly recommended for performance!)"
79
79
  ExecShell "" '"$0"' "/C powershell -ExecutionPolicy Bypass -Command $\\"& {Add-MpPreference -ExclusionPath $\\"$LOCALAPPDATA\\${config.dirname}$\\"}$\\" -FFFeatureOff" SW_HIDE
80
80
  SectionEnd
81
81
 
@@ -252,8 +252,8 @@ the CLI should already exist in a directory named after the CLI that is the root
252
252
  config,
253
253
  customization: nsisCustomization,
254
254
  // hiding it also unchecks it
255
- defenderOptionDefault: flags['defender-exclusion'] === 'hidden' ? false : flags['default-defender-exclusion'],
256
- hideDefenderOption: flags['hide-defender-option'] === 'hidden',
255
+ defenderOptional: flags['defender-exclusion'] === 'hidden' || flags['defender-exclusion'] === 'unchecked',
256
+ hideDefenderOption: flags['defender-exclusion'] === 'hidden',
257
257
  })),
258
258
  ...(config.binAliases
259
259
  ? config.binAliases.flatMap((alias) =>
@@ -737,5 +737,5 @@
737
737
  ]
738
738
  }
739
739
  },
740
- "version": "4.4.6"
740
+ "version": "4.4.7"
741
741
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "oclif",
3
3
  "description": "oclif: create your own CLI",
4
- "version": "4.4.6",
4
+ "version": "4.4.7",
5
5
  "author": "Salesforce",
6
6
  "bin": {
7
7
  "oclif": "bin/run.js"