File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 3535 shell : pwsh
3636 run : |
3737 Write-Host "Running code generation validation..."
38- ./scripts/Invoke-CodeGen.ps1
38+ ./scripts/Invoke-CodeGen.ps1 -Clean
3939
4040 if ($LASTEXITCODE -ne 0) {
4141 Write-Error "Code generation failed with exit code: $LASTEXITCODE"
Original file line number Diff line number Diff line change @@ -16,7 +16,10 @@ param(
1616 [string ]$LocalRepositoryPath ,
1717
1818 [Parameter (Mandatory = $false )]
19- [switch ]$Force
19+ [switch ]$Force ,
20+
21+ [Parameter (Mandatory = $false )]
22+ [switch ]$Clean
2023)
2124
2225function Invoke-ScriptWithLogging {
@@ -293,6 +296,14 @@ try {
293296
294297 Write-ElapsedTime " npm ci complete"
295298
299+ if ($Clean ) {
300+ Invoke-ScriptWithLogging { npm run clean - w $codegenFolderPath }
301+ if ($LASTEXITCODE -ne 0 ) {
302+ exit $LASTEXITCODE
303+ }
304+ Write-ElapsedTime " npm run clean complete"
305+ }
306+
296307 Invoke-ScriptWithLogging { npm run build - w $codegenFolderPath }
297308 if ($LASTEXITCODE -ne 0 ) {
298309 exit $LASTEXITCODE
You can’t perform that action at this time.
0 commit comments