Skip to content

Commit 8947990

Browse files
committed
Fix copy files
1 parent c558105 commit 8947990

2 files changed

Lines changed: 23 additions & 2 deletions

File tree

data.build.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"NOTICE.txt",
2020
"osinfo",
2121
"osinfo.dsc.resource.json",
22+
"powershell.dsc.extension.json",
23+
"powershell.discover.ps1",
2224
"powershell.dsc.resource.json",
2325
"psDscAdapter/",
2426
"psscript.ps1",
@@ -43,6 +45,8 @@
4345
"NOTICE.txt",
4446
"osinfo",
4547
"osinfo.dsc.resource.json",
48+
"powershell.dsc.extension.json",
49+
"powershell.discover.ps1",
4650
"powershell.dsc.resource.json",
4751
"psDscAdapter/",
4852
"psscript.ps1",
@@ -67,6 +71,8 @@
6771
"NOTICE.txt",
6872
"osinfo.exe",
6973
"osinfo.dsc.resource.json",
74+
"powershell.dsc.extension.json",
75+
"powershell.discover.ps1",
7076
"powershell.dsc.resource.json",
7177
"psDscAdapter/",
7278
"psscript.ps1",
@@ -188,6 +194,17 @@
188194
]
189195
}
190196
},
197+
{
198+
"Name": "extensions/powershell",
199+
"Kind": "Extension",
200+
"RelativePath": "extensions/powershell",
201+
"CopyFiles": {
202+
"All": [
203+
"powershell.discover.ps1",
204+
"powershell.dsc.extension.json"
205+
]
206+
}
207+
},
191208
{
192209
"Name": "tree-sitter-dscexpression",
193210
"Kind": "Grammar",

dsc/tests/dsc_extension_discover.tests.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,19 @@ Describe 'Discover extension tests' {
2424
$out = dsc extension list | ConvertFrom-Json
2525
$LASTEXITCODE | Should -Be 0
2626
if ($IsWindows) {
27-
$out.Count | Should -Be 2 -Because ($out | Out-String)
27+
$out.Count | Should -Be 3 -Because ($out | Out-String)
2828
$out[0].type | Should -Be 'Microsoft.Windows.Appx/Discover'
2929
$out[0].version | Should -Be '0.1.0'
3030
$out[0].capabilities | Should -BeExactly @('discover')
3131
$out[0].manifest | Should -Not -BeNullOrEmpty
32-
$out[1].type | Should -BeExactly 'Test/Discover'
32+
$out[1].type | Should -BeExactly 'Microsoft.PowerShell/Discover'
3333
$out[1].version | Should -BeExactly '0.1.0'
3434
$out[1].capabilities | Should -BeExactly @('discover')
3535
$out[1].manifest | Should -Not -BeNullOrEmpty
36+
$out[2].type | Should -BeExactly 'Test/Discover'
37+
$out[2].version | Should -BeExactly '0.1.0'
38+
$out[2].capabilities | Should -BeExactly @('discover')
39+
$out[2].manifest | Should -Not -BeNullOrEmpty
3640
} else {
3741
$out.Count | Should -Be 2 -Because ($out | Out-String)
3842
$out[0].type | Should -BeExactly 'Microsoft.PowerShell/Discover'

0 commit comments

Comments
 (0)