File tree 1 file changed +15
-2
lines changed
1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 3508
3508
3509
3509
3510
3510
$membersByType = @{}
3511
+ $CommonParentPath = $null
3511
3512
foreach ($fp in $FilePath) {
3512
3513
$filePathRoot = Get-Item -Path $fp
3514
+ if (-not $filePathRoot) { continue}
3515
+ if (-not $CommonParentPath) {
3516
+ $CommonParentPath = $filePathRoot.Parent.FullName
3517
+ } elseif ($CommonParentPath) {
3518
+ $CommonParentPath | Split-Path -CommonPrefix $filePathRoot
3519
+ }
3513
3520
$filesBeneathRoot = Get-ChildItem -Recurse -Path $fp -Force
3514
3521
3515
3522
:nextFile foreach ($fileBeneathRoot in $filesBeneathRoot) {
3636
3643
}
3637
3644
3638
3645
# Do not Skip format/view/control files (this allows them to be in the same directory as types, if that is preferred)
3639
- $isFormatFile = $item.Name -match '\.(?> format|view|control)\.ps1$'
3646
+ $isFormatFile = $item.Name -match '\.(?> format|view|control)\.ps1$'
3640
3647
3641
3648
$itemName =
3642
3649
$item.Name.Substring(0, $item.Name.Length - $item.Extension.Length)
3777
3784
}
3778
3785
}
3779
3786
3787
+ .sql {
3788
+ if (-not $noteProperty.Contains($itemName)) # SQL files become note properties.
3789
+ {
3790
+ $noteProperty[$itemName] = $fileText
3791
+ }
3792
+ }
3780
3793
3781
3794
#endregion .txt Files
3782
3795
#region .psd1 Files
@@ -3831,7 +3844,7 @@ return `$convertedFromJson
3831
3844
"@)
3832
3845
}
3833
3846
}
3834
- #endregion JSON files
3847
+ #endregion JSON files
3835
3848
#region CliXML files
3836
3849
# Clixml files are embedded into a ScriptProperty and Deserialized.
3837
3850
.clixml {
You can’t perform that action at this time.
0 commit comments