Skip to content
8 changes: 4 additions & 4 deletions eng/pipelines/templates/steps/use-node-test-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ steps:
}
# Map from the symlink path to the target path (npm has issues installing into symlink dirs)
# Example: common/temp/node_modules/.pnpm/keytar@5.6.0/node_modules/keytar
$targetPath = (Get-Item $symlink).Target
$symlinkInfo = Get-Item $symlink
$targetPath = [IO.Path]::Combine($symlinkInfo.Parent, $symlinkInfo.Target)
Write-Host "Target of symlink : $($targetPath)"

# Need to run "npm install" at path containing "node_modules" folder
# Example: common/temp/node_modules/.pnpm/keytar@5.6.0
Expand All @@ -38,11 +40,9 @@ steps:
}

$packageAtVersion = Split-Path -Leaf $packageInstallPath

Comment thread
praveenkuttappan marked this conversation as resolved.
# pnpm v6 replaces '/' in package names with '+' to reduce nesting directory in virtual store so we need to
# change it back
$packageAtVersion = $packageAtVersion.Replace("+", "/")

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have reverted this new line change and it's showing up correctly on view file of latest commit.

# Check if package has org name. for e.g @azure/msal-node-enxtensions
# This returns either @azure or .pnpm( if no org is present)
$packageParentName = Split-path -Leaf (Split-Path -Parent -Resolve $packageInstallPath)
Expand All @@ -62,4 +62,4 @@ steps:
}

displayName: Reinstall native dependencies
condition: ne(variables['NodeTestVersion'], variables['NodeVersion'])
Comment thread
praveenkuttappan marked this conversation as resolved.
condition: and(succeeded(),ne(variables['NodeTestVersion'], variables['NodeVersion']))