From 98efcac9a1dfa954f1ec067bda73087034680782 Mon Sep 17 00:00:00 2001 From: Sergey Dolin Date: Wed, 5 Feb 2020 18:18:51 +0500 Subject: [PATCH 1/3] Add lerna --- images/win/scripts/Installers/Install-NodeLts.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/images/win/scripts/Installers/Install-NodeLts.ps1 b/images/win/scripts/Installers/Install-NodeLts.ps1 index 2490cdfe..e43febd4 100644 --- a/images/win/scripts/Installers/Install-NodeLts.ps1 +++ b/images/win/scripts/Installers/Install-NodeLts.ps1 @@ -31,3 +31,4 @@ npm install -g gulp-cli npm install -g parcel-bundler npm install -g --save-dev webpack webpack-cli npm install -g yarn +npm install --global lerna \ No newline at end of file From 6fb22bcf938e515b24024004ffef79ba0c304e34 Mon Sep 17 00:00:00 2001 From: Sergey Dolin Date: Wed, 5 Feb 2020 18:22:51 +0500 Subject: [PATCH 2/3] Add lerna validation --- images/win/scripts/Installers/Validate-NodeLts.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/images/win/scripts/Installers/Validate-NodeLts.ps1 b/images/win/scripts/Installers/Validate-NodeLts.ps1 index f2c86faf..7d42a040 100644 --- a/images/win/scripts/Installers/Validate-NodeLts.ps1 +++ b/images/win/scripts/Installers/Validate-NodeLts.ps1 @@ -26,6 +26,16 @@ else exit 1 } +if(Get-Command -Name 'lerna') +{ + Write-Host "lerna $(lerna --version) on path" +} +else +{ + Write-Host "lerna is not on path" + exit 1 +} + if( $(node --version) -match 'v(?.*)' ) From f26dcc9a9152fa7499f09f18081cffbb549d5d35 Mon Sep 17 00:00:00 2001 From: Sergey Dolin Date: Fri, 7 Feb 2020 17:01:56 +0500 Subject: [PATCH 3/3] set -g instead of --global to be consistent with previous lines --- images/win/scripts/Installers/Install-NodeLts.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/win/scripts/Installers/Install-NodeLts.ps1 b/images/win/scripts/Installers/Install-NodeLts.ps1 index e43febd4..e98e7f39 100644 --- a/images/win/scripts/Installers/Install-NodeLts.ps1 +++ b/images/win/scripts/Installers/Install-NodeLts.ps1 @@ -31,4 +31,4 @@ npm install -g gulp-cli npm install -g parcel-bundler npm install -g --save-dev webpack webpack-cli npm install -g yarn -npm install --global lerna \ No newline at end of file +npm install -g lerna