Skip to content

Commit a97f93d

Browse files
Update priority for local repository and specify repository in Install-PSResource command
1 parent dcbe3ec commit a97f93d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/main.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ switch ($settings) {
1616
Name = 'Local'
1717
Uri = New-Item -Path $PSScriptRoot -Name '.localpsmodulerepo' -ItemType Directory
1818
Trusted = $true
19-
Priority = 1
19+
Priority = 100
2020
}
2121
Register-PSResourceRepository @localRepo
2222
Publish-PSResource -Path $codePath -Repository Local
23-
Install-PSResource -Name $moduleName
23+
Install-PSResource -Name $moduleName -Repository Local
2424
}
2525
'SourceCode' {
2626
$codePath = Resolve-Path -Path 'src' | Select-Object -ExpandProperty Path

0 commit comments

Comments
 (0)