From 3e73888510b2d146efe71954cb84e2208eb9da5e Mon Sep 17 00:00:00 2001 From: Elitsa Marinovska Date: Tue, 12 May 2020 12:20:32 +0200 Subject: [PATCH] Changing path that was causing an error --- build/build.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/build.ps1 b/build/build.ps1 index b69f02442b..2ca0a28565 100644 --- a/build/build.ps1 +++ b/build/build.ps1 @@ -460,8 +460,11 @@ $src = "$($this.SolutionRoot)\src" $out = $this.BuildOutput + # Check if the solution has been built + if (!(Test-Path "$src\Umbraco.Web.UI.Client\node_modules")) {throw "Umbraco needs to be built before generating the Angular Docs"} + "Moving to Umbraco.Web.UI.Docs folder" - cd ..\src\Umbraco.Web.UI.Docs + cd $src\Umbraco.Web.UI.Docs "Generating the docs and waiting before executing the next commands" & npm install