We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b5b7f50 + 03f8e22 commit 176ffe9Copy full SHA for 176ffe9
1 file changed
.devcontainer/devcontainer.json
@@ -74,7 +74,7 @@
74
},
75
76
// Run once when the container is created
77
- "onCreateCommand": "pwsh -NoProfile -Command 'Install-PSResource -RequiredResourceFile /workspaces/PSScriptModule/requirements.psd1 -AcceptLicense -TrustRepository -Verbose'",
+ "onCreateCommand": "pwsh -NoProfile -Command \"if (-not (Get-Module -ListAvailable -Name PSDepend)) { Install-Module -Name PSDepend -Scope CurrentUser -Force }; Invoke-PSDepend -Path '/workspaces/PSScriptModule/requirements.psd1' -Install -Import -Force -Verbose\"",
78
79
// Run after container starts (each time)
80
"postStartCommand": "pwsh -NoProfile -Command 'Write-Host \"Container started.\"'",
0 commit comments