From d1013d68b1befa4afde7f14aaafd654b46f8408e Mon Sep 17 00:00:00 2001 From: Bert Date: Sat, 27 Jan 2024 18:34:40 +0100 Subject: [PATCH] Use yarn when NPM is not available --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index ba91d23..a1c4646 100644 --- a/composer.json +++ b/composer.json @@ -3,8 +3,8 @@ "description": "Use the Belgian railway's station in your PHP project", "type": "library", "scripts": { - "pre-install-cmd" : "npm install ; node bin/build.js > stations.jsonld", - "pre-update-cmd": "npm install ; node bin/build.js > stations.jsonld" + "pre-install-cmd" : "npm install || yarn install ; node bin/build.js > stations.jsonld", + "pre-update-cmd": "npm install || yarn install ; node bin/build.js > stations.jsonld" }, "license": "CC0-1.0", "authors": [