Skip to content

Commit

Permalink
scripts: fix unpinnedNugetPackage... script
Browse files Browse the repository at this point in the history
Use working dir instead of script's parent directory in
unpinnedNugetPackageReferenceVersionsInProjects.fsx to
search for projects as it is intended behavior.
  • Loading branch information
webwarrior-ws authored and knocte committed Nov 6, 2024
1 parent 027130d commit 92e1ef8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/unpinnedNugetPackageReferenceVersionsInProjects.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ open System.IO
#load "../src/FileConventions/Helpers.fs"

let rootDir = Path.Combine(__SOURCE_DIRECTORY__, "..") |> DirectoryInfo
let currentDir = Directory.GetCurrentDirectory() |> DirectoryInfo

let targetDir = Helpers.PreferLessDeeplyNestedDir currentDir rootDir

let invalidFiles =
Helpers.GetInvalidFiles
rootDir
targetDir
"*.*proj"
FileConventions.DetectAsteriskInPackageReferenceItems

Expand Down

0 comments on commit 92e1ef8

Please sign in to comment.