aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-24 19:29:08 -0500
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-24 19:29:27 -0500
commite220e15441aef1da6bbaa83728b785833b4867ec (patch)
treec0b722b0080d6167740b965a450a184430dd2e33 /scripts
parentUpdate submodules, browserslist data updates and linter fixes [skip ci] (diff)
downloadferdium-app-e220e15441aef1da6bbaa83728b785833b4867ec.tar.gz
ferdium-app-e220e15441aef1da6bbaa83728b785833b4867ec.tar.zst
ferdium-app-e220e15441aef1da6bbaa83728b785833b4867ec.zip
Remove dependency on 'jq' since 'node' can be used for the same
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build-unix.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build-unix.sh b/scripts/build-unix.sh
index 4fbc78413..4cefae0be 100755
--- a/scripts/build-unix.sh
+++ b/scripts/build-unix.sh
@@ -94,14 +94,14 @@ command_exists asdf && asdf reshim nodejs
94 94
95# Ensure that the system dependencies are at the correct version 95# Ensure that the system dependencies are at the correct version
96# Check npm version 96# Check npm version
97EXPECTED_NPM_VERSION=$(jq --raw-output .engines.npm ./package.json) 97EXPECTED_NPM_VERSION=$(node -p 'require("./package.json").engines.npm')
98ACTUAL_NPM_VERSION=$(npm --version) 98ACTUAL_NPM_VERSION=$(npm --version)
99if [[ "$ACTUAL_NPM_VERSION" != "$EXPECTED_NPM_VERSION" ]]; then 99if [[ "$ACTUAL_NPM_VERSION" != "$EXPECTED_NPM_VERSION" ]]; then
100 npm i -gf npm@$EXPECTED_NPM_VERSION 100 npm i -gf npm@$EXPECTED_NPM_VERSION
101fi 101fi
102 102
103# Check pnpm version 103# Check pnpm version
104EXPECTED_PNPM_VERSION=$(jq --raw-output .engines.pnpm ./recipes/package.json) 104EXPECTED_PNPM_VERSION=$(node -p 'require("./recipes/package.json").engines.pnpm')
105ACTUAL_PNPM_VERSION=$(pnpm --version || true) # in case the pnpm executable itself is not present 105ACTUAL_PNPM_VERSION=$(pnpm --version || true) # in case the pnpm executable itself is not present
106if [[ "$ACTUAL_PNPM_VERSION" != "$EXPECTED_PNPM_VERSION" ]]; then 106if [[ "$ACTUAL_PNPM_VERSION" != "$EXPECTED_PNPM_VERSION" ]]; then
107 npm i -gf pnpm@$EXPECTED_PNPM_VERSION 107 npm i -gf pnpm@$EXPECTED_PNPM_VERSION