From 0330977385aa92cd0ae097d61a60137b6cc0ef39 Mon Sep 17 00:00:00 2001 From: Ashish Aggarwal Date: Sun, 16 Jun 2024 21:21:23 -0400 Subject: [PATCH] DYN-7143 Skip install for npm packages which are already up-to-date (#15316) --- src/DynamoCoreWpf/DynamoCoreWpf.csproj | 28 +++++++++++++++---- .../LibraryViewExtensionWebView2.csproj | 14 ++++++++-- src/Notifications/Notifications.csproj | 15 ++++++++-- src/pkgexist.ps1 | 15 ++++++++++ 4 files changed, 60 insertions(+), 12 deletions(-) create mode 100644 src/pkgexist.ps1 diff --git a/src/DynamoCoreWpf/DynamoCoreWpf.csproj b/src/DynamoCoreWpf/DynamoCoreWpf.csproj index 642cdd4110a..a5149d3ed4f 100644 --- a/src/DynamoCoreWpf/DynamoCoreWpf.csproj +++ b/src/DynamoCoreWpf/DynamoCoreWpf.csproj @@ -22,13 +22,21 @@ + + 1.0.19 + SplashScreen + + + + + - + - + - + @@ -50,13 +58,21 @@ + + 1.0.14 + DynamoHome + + + + + - + - + - + diff --git a/src/LibraryViewExtensionWebView2/LibraryViewExtensionWebView2.csproj b/src/LibraryViewExtensionWebView2/LibraryViewExtensionWebView2.csproj index 46030703fb0..d649db87cca 100644 --- a/src/LibraryViewExtensionWebView2/LibraryViewExtensionWebView2.csproj +++ b/src/LibraryViewExtensionWebView2/LibraryViewExtensionWebView2.csproj @@ -16,13 +16,21 @@ + + 1.0.5 + LibrarieJS + + + + + - + - + - + diff --git a/src/Notifications/Notifications.csproj b/src/Notifications/Notifications.csproj index 1fc5a6d090d..f01935e780f 100644 --- a/src/Notifications/Notifications.csproj +++ b/src/Notifications/Notifications.csproj @@ -15,13 +15,22 @@ + + 0.0.29 + NotificationCenter + + + + + + - + - + - + diff --git a/src/pkgexist.ps1 b/src/pkgexist.ps1 new file mode 100644 index 00000000000..3baf9585a6e --- /dev/null +++ b/src/pkgexist.ps1 @@ -0,0 +1,15 @@ +$pkgname=$args[0] +$pkgver=$args[1] + +If ((-Not (Test-Path .\Packages\$pkgname)) -Or (-Not (Test-Path .\Packages\$pkgname\package.json))) { + echo true + return +} + +$currver=(Get-Content .\Packages\$pkgname\package.json | ConvertFrom-Json).version +If ($currver -ne $pkgver) { + echo true +} +else { + echo false +} \ No newline at end of file