From b0febe6f5afaff1a8ad126f4b555bfa8d49170ac Mon Sep 17 00:00:00 2001 From: Jordan Jensen Date: Fri, 3 May 2024 16:42:14 -0700 Subject: [PATCH] Only use root level npm install --- extensions/vscode/justfile | 19 ------------------- extensions/vscode/webviews/homeView/justfile | 13 ------------- justfile | 6 +++--- 3 files changed, 3 insertions(+), 35 deletions(-) diff --git a/extensions/vscode/justfile b/extensions/vscode/justfile index 221ccb825e..98b27e5fd3 100644 --- a/extensions/vscode/justfile +++ b/extensions/vscode/justfile @@ -58,30 +58,11 @@ clean: rm -rf out just ./webviews/homeView/clean - -# Install dependencies -deps: - #!/usr/bin/env bash - set -eou pipefail - {{ _with_debug }} - - if [ {{ _ci }} = "true" ]; then - npm ci --no-audit --no-fund | sed 's/^/debug: /' - npm --prefix ./webviews/homeView ci --no-audit --no-fund | sed 's/^/debug: /' - else - npm install --no-audit --no-fund | sed 's/^/debug: /' - npm --prefix ./webviews/homeView install --no-audit --no-fund | sed 's/^/debug: /' - fi - just ./webviews/homeView/deps - - configure os="$(just ../../os)" arch="$(just ../../arch)": #!/usr/bin/env bash set -eou pipefail {{ _with_debug }} - just deps - echo "info: checking for compatible binary executable..." 1>&2 binary_executable=$(just ../../executable-path {{ os }} {{ arch }}) if ! [ -f "$binary_executable" ]; then diff --git a/extensions/vscode/webviews/homeView/justfile b/extensions/vscode/webviews/homeView/justfile index de5a98cb2c..19782708b5 100644 --- a/extensions/vscode/webviews/homeView/justfile +++ b/extensions/vscode/webviews/homeView/justfile @@ -17,16 +17,3 @@ clean: {{ _with_debug }} rm -rf node_modules - - -# Install dependencies -deps: - #!/usr/bin/env bash - set -eou pipefail - {{ _with_debug }} - - if [ {{ _ci }} = "true" ]; then - npm ci --no-audit --no-fund | sed 's/^/debug: /' - else - npm install --no-audit --no-fund | sed 's/^/debug: /' - fi diff --git a/justfile b/justfile index bbd987bedb..59c431d54f 100644 --- a/justfile +++ b/justfile @@ -178,9 +178,9 @@ npm-install: {{ _with_debug }} if [ {{ _ci }} = "true" ]; then - npm ci --no-audit --no-fund + npm ci --no-audit --no-fund | sed 's/^/debug: /' else - npm install --no-audit --no-fund + npm install --no-audit --no-fund | sed 's/^/debug: /' fi # staticcheck, vet, and format check @@ -215,7 +215,7 @@ name: basename {{ _cmd }} -package: +package: npm-install #!/usr/bin/env bash set -eou pipefail {{ _with_debug }}