Skip to content

Commit 01ebb21

Browse files
author
James Brundage
committed
PipeScript.PipeScriptType: Renaming 'SourceGenerator' type to 'Template' (Fixes #314)
1 parent 4bc4690 commit 01ebb21

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Export-PipeScript.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,14 @@ function Export-Pipescript {
2424
$filesToBuild =
2525
@(if (-not $InputPath) {
2626
Get-PipeScript -PipeScriptPath $pwd |
27-
Where-Object PipeScriptType -In SourceGenerator
27+
Where-Object PipeScriptType -In SourceGenerator, Template
2828
} else {
2929
foreach ($inPath in $InputPath) {
3030
Get-PipeScript -PipeScriptPath $inPath |
31-
Where-Object PipeScriptType -In SourceGenerator
31+
Where-Object PipeScriptType -In SourceGenerator, Template
3232
}
3333
})
3434

35-
3635
$buildStarted = [DateTime]::Now
3736
$filesToBuildCount, $filesToBuildTotal, $filesToBuildID = 0, $filesToBuild.Length, $(Get-Random)
3837
foreach ($buildFile in $filesToBuild) {

Types/PipeScript/get_PipeScriptType.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ if ($this.Source -match '\.psx\.ps1{0,1}$') {
22
"Transpiler"
33
}
44
elseif ($this.Source -match "\.ps1{0,1}\.(?<ext>[^.]+$)") {
5-
"SourceGenerator"
5+
"Template"
66
}
77
elseif ($this.Source -match '(?<=(?>^|\.))build\.ps1$') {
88
"BuildScript"

0 commit comments

Comments
 (0)