We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a485fc9 + d05d332 commit 1d68024Copy full SHA for 1d68024
1 file changed
scripts/clean-go-files.ps1
@@ -1,4 +1,8 @@
1
-$directories = Get-ChildItem -Path $env:MainDirectory -Directory -Exclude @("core", "scripts", ".github" , "tests")
+# Only generated model/request-builder directories should be removed before regeneration.
2
+# Exclude hand-maintained folders and ALL dot-directories (".*" matches .github, .config,
3
+# .azure-pipelines, .vscode, .devcontainer, etc.) so repo tooling, CI and security-baseline
4
+# config are not deleted by generation runs.
5
+$directories = Get-ChildItem -Path $env:MainDirectory -Directory -Exclude @("core", "scripts", "tests", ".*")
6
foreach ($directory in $directories) {
7
Remove-Item -Path $directory.FullName -Recurse -Force -Verbose -Exclude *change_notification*, "change_type.go", "lifecycle_event_type.go", "resource_data.go", "resource_permission.go" , "resource_permission_collection_response.go"
8
}
0 commit comments