Skip to content

Commit 5befd34

Browse files
committed
Install package provider
1 parent cceb7f9 commit 5befd34

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tools/office-cmdlet-updater/constants/commands.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module.exports = {
22
GET_TEAM: 'Get-Team',
3+
INSTALL_PACKAGE_PROVIDER: 'Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force',
34
INSTALL_MICROSOFT_TEAM: 'Install-Module MicrosoftTeams -SkipPublisherCheck -Force',
45
CONNECT_MICROSOFT_TEAM: 'Connect-MicrosoftTeams',
56
INSTALL_PLATYPS: 'Install-Module -Name platyPS -SkipPublisherCheck -Scope CurrentUser -Force',

tools/office-cmdlet-updater/services/cmdlet.dependencies.service.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class CmdletDependenciesService {
4343
}
4444

4545
async installPlatyPs() {
46+
await this.ps.invokeCommand(commands.INSTALL_PACKAGE_PROVIDER);
4647
await this.ps.invokeCommand(commands.INSTALL_PLATYPS);
4748
await this.ps.invokeCommand(commands.IMPORT_PLATYPS);
4849
}

0 commit comments

Comments
 (0)