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 committed Nov 5, 2024
1 parent aed7a80 commit 6f8e0ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/unpinnedNugetPackageReferenceVersionsInProjects.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ open System.IO
#load "../src/FileConventions/Library.fs"
#load "../src/FileConventions/Helpers.fs"

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

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

Expand Down

0 comments on commit 6f8e0ed

Please sign in to comment.