fix: root package.json directory, fixes #59
This commit is contained in:
parent
9b8d2b3f6e
commit
989d08bb2a
1 changed files with 3 additions and 2 deletions
|
|
@ -69,8 +69,9 @@ function Add-DirectoryToPath($directory) {
|
|||
# resets PATH to ensure the script doesn't have stale Path entries
|
||||
Reset-Path
|
||||
|
||||
# gets project dir (get grandparent dir from script location: <PROJECT_ROOT>\packages\scripts\setup.ps1)
|
||||
$projectRoot = Split-Path -Path $PSScriptRoot -Parent
|
||||
# gets project dir (get dir from script location: <PROJECT_ROOT>\packages\scripts\setup.ps1)
|
||||
$packagesRoot = Split-Path -Path $PSScriptRoot -Parent
|
||||
$projectRoot = Split-Path -Path $packagesRoot -Parent
|
||||
$packageJson = Get-Content -Raw -Path "$projectRoot\package.json" | ConvertFrom-Json
|
||||
|
||||
# valid winget exit statuses
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue