From 741c240198fca541f172b9487fcba17df7ec4071 Mon Sep 17 00:00:00 2001 From: Thanabodee Charoenpiriyakij Date: Mon, 16 Nov 2020 00:04:14 +0700 Subject: [PATCH] Fix Pack-Npm.ps1 cannot create packages * Change $srcDir to join with "src" not "build/packages". * Remove calling npm on $srcDir/com.unity.git.tests, it doesn't exists. --- scripts/Pack-Npm.ps1 | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/scripts/Pack-Npm.ps1 b/scripts/Pack-Npm.ps1 index bf53188b..b5bb510b 100644 --- a/scripts/Pack-Npm.ps1 +++ b/scripts/Pack-Npm.ps1 @@ -11,7 +11,7 @@ if ($Trace) { . $PSScriptRoot\helpers.ps1 | out-null -$srcDir = Join-Path $rootDirectory 'build\packages' +$srcDir = Join-Path $rootDirectory 'src' $targetDir = Join-Path $rootDirectory 'build\npm' @@ -28,16 +28,6 @@ try { Pop-Location } -try { - Push-Location (Join-Path $srcDir "com.unity.git.tests") - $package = Invoke-Command -Fatal { & npm pack -q } - $package = "$package".Trim() - $tgt = Join-Path $targetDir $package - Move-Item $package $tgt -Force -} finally { - Pop-Location -} - $targetDir = Join-Path $rootDirectory 'upm-ci~\packages' Remove-Item "$targetDir\*" -Force -ErrorAction SilentlyContinue