Skip to content

Commit eeab01f

Browse files
committed
$_.Directory -> $_.DirectoryName
1 parent 031ebb2 commit eeab01f

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

Pipelines/Scripts/pack-upm.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ try {
5858
}
5959

6060
$packageName = $packageName.Matches[0].Value
61-
$packagePath = $_.Directory
61+
$packagePath = $_.DirectoryName
6262
$docFolder = "$packagePath/Documentation~"
6363

6464
Write-Host ""

Pipelines/Scripts/repackage-for-release.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ try {
5757
}
5858

5959
$packageName = $packageName.Matches[0].Value
60-
$packagePath = $_.Directory
60+
$packagePath = $_.DirectoryName
6161

6262
Write-Host ""
6363
Write-Host -ForegroundColor Green "======================================="
@@ -85,7 +85,7 @@ try {
8585
$currentPackageName = $currentPackageName.Matches[0].Value
8686
$packageFriendlyName = (Select-String -Pattern "`"displayName`": `"(.+)`"" -Path $_ | Select-Object -First 1).Matches.Groups[1].Value
8787

88-
$packagePath = $_.Directory
88+
$packagePath = $_.DirectoryName
8989

9090
Write-Output "Packing $packageFriendlyName to $OutputDirectory"
9191
npm pack $packagePath -pack-destination $OutputDirectory

Pipelines/Scripts/update-versions.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Get-ChildItem -Path $PackagesRoot -Filter "package.json" -Recurse | ForEach-Obje
7070
$version = $jsonContent.version
7171

7272
# Get the package path
73-
$packagePath = $_.Directory
73+
$packagePath = $_.DirectoryName
7474

7575
Write-Host ""
7676
Write-Host -ForegroundColor Green "======================================="

Pipelines/Scripts/validatecode.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ else {
514514
# Gets all package.json files one layer down, to determine which folders represent MRTK packages
515515
# Also checks TestProjects
516516
Get-ChildItem -Path $Paths | ForEach-Object {
517-
$package = $_.Directory
517+
$package = $_.DirectoryName
518518
if (-not $package) {
519519
$package = $_
520520
}

Tooling/create-assemblyinfo.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Get-ChildItem -Path (Join-Path $gitRoot * package.json) | ForEach-Object {
1212

1313
$packageName = $packageName.Matches[0].Value
1414

15-
$asmdefs = Get-ChildItem $_.Directory *.asmdef -Recurse | Select-Object FullName
15+
$asmdefs = Get-ChildItem $_.DirectoryName *.asmdef -Recurse | Select-Object FullName
1616
foreach ($asmdef in $asmdefs) {
1717
# The AssemblyInfo.cs file will be added as a sibling of the .asmdef location,
1818
# so we need to trim off the filename.

0 commit comments

Comments
 (0)