From dbcf3dfd7faaffdee50024846377d8421df922b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20K=C3=BCttel?= Date: Fri, 26 Jan 2024 01:43:02 +0100 Subject: [PATCH] add npm install to build.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When I first ran the build script I didn't have npm installed but had tsc, I then got the following error ⇒ Creating diva.yml file… ../../build.ts:20:16 - error TS2307: Cannot find module 'fs' or its corresponding type declarations. 20 import fs from 'fs'; With more similar errors following. This occured because the node dependencies were not installed. I therefore installed npm and added an npm install to the script. We might need to pass further options because we want this scripted nicely, but for now I propose just adding an npm install call before the call to the typescript compiler tsc. --- bin/build.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/build.sh b/bin/build.sh index 52631ed..ca3a2d6 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -136,6 +136,8 @@ fi running "Creating diva.yml file" +npm install + tsc JOIN_NETWORK=${JOIN_NETWORK} \