diff --git a/scripts/2.git.release.ps1 b/scripts/2.git.release.ps1 index a6ddb65..f58c1e2 100644 --- a/scripts/2.git.release.ps1 +++ b/scripts/2.git.release.ps1 @@ -13,11 +13,11 @@ git checkout main git branch -D release git checkout -b release ./node_modules/.bin/standard-version -r $types[$prefix][0] +cd ./scripts ./code.clean.ps1 git commit --amend --no-edit -a git push --follow-tags --force origin release Start-Process -FilePath "https://github.com/nsnail/dot/compare/main...release" -cd ./scripts Write-Host "按『Enter』回到主分支,『Ctrl+C』退出" Pause git checkout main diff --git a/scripts/code.clean.ps1 b/scripts/code.clean.ps1 index 09190f1..22fdd70 100644 --- a/scripts/code.clean.ps1 +++ b/scripts/code.clean.ps1 @@ -1,4 +1,4 @@ -dotnet jb cleanupcode --no-build --include =$( $( git status --porcelain | Where-Object { $_ -match "^\s*[MA]" } | ForEach-Object { $_.TrimStart(" M").TrimStart(" A") } ) -join ";" ) ../Dot.sln +jb cleanupcode --no-build --include =$( $( git status --porcelain | Where-Object { $_ -match "^\s*[MA]" } | ForEach-Object { $_.TrimStart(" M").TrimStart(" A") } ) -join ";" ) ../Dot.sln dot rbom -w -e refs -e .git -e node_modules ../ dot trim -w -e refs -e .git -e node_modules ../ dot tolf -w -e refs -e .git -e node_modules ../ \ No newline at end of file