Skip to content

Commit b379293

Browse files
author
James Brundage
committed
PipeScript.PipeScriptType: Adding BuildScript (Fixes #228)
1 parent a1dcc74 commit b379293

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Types/PipeScript/get_PipeScriptType.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ if ($this.Source -match '\.psx\.ps1{0,1}$') {
44
elseif ($this.Source -match "\.ps1{0,1}\.(?<ext>[^.]+$)") {
55
"SourceGenerator"
66
}
7+
elseif (($this.Source -match '\.[^\.\\/]+\.ps1$') -or ($this.Source -match 'build\.ps1$')) {
8+
"BuildScript"
9+
}
710
elseif ($this.Source) {
811
"PipeScriptFile"
912
}

0 commit comments

Comments
 (0)