mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
Fix explorer scripts for the explorer/ location
This commit is contained in:
@@ -8,7 +8,5 @@ npx svelte-check --tsconfig tsconfig.json --config ./vite.config.ts --fail-on-wa
|
||||
# CI can then carry them between builds. They share one directory because a
|
||||
# Buildkite cache path is always a directory, never a file.
|
||||
mkdir -p .lintcache
|
||||
# desktop/ has its own eslint config, which eslint would otherwise pick up for
|
||||
# its files. It is linted by desktop/scripts/check-js.
|
||||
npx eslint --cache --cache-location .lintcache/eslint --cache-strategy content --max-warnings 0 --ignore-pattern desktop/ .
|
||||
npx eslint --cache --cache-location .lintcache/eslint --cache-strategy content --max-warnings 0 .
|
||||
npx prettier "**/*.@(ts|js|svelte|json|css|html|yml)" --ignore-path .gitignore --ignore-path .prettierignore --check --cache --cache-location .lintcache/prettier
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || echo "$PWD")
|
||||
REPO_ROOT=$(cd "$(dirname "$0")/.." && pwd)
|
||||
RELEASE=$(cat "$REPO_ROOT/tests/support/heartwood-release")
|
||||
HTTPD_RELEASE=$(cat "$REPO_ROOT/tests/support/radicle-httpd-release")
|
||||
ARTIFACT_RELEASE=$(cat "$REPO_ROOT/tests/support/radicle-artifact-release")
|
||||
|
||||
@@ -31,14 +31,7 @@ done
|
||||
# Heartwood repo id
|
||||
rid=z3gqcJUoA1n9HaHKufZs5FCSGazv5
|
||||
|
||||
# Some root detection guess work...
|
||||
root=$(git rev-parse --show-toplevel 2>/dev/null || echo "$PWD")
|
||||
if [ ! -e "$root/tests/support/heartwood-release" ]; then
|
||||
root=$(
|
||||
cd ..
|
||||
pwd
|
||||
)
|
||||
fi
|
||||
root=$(cd "$(dirname "$0")/.." && pwd)
|
||||
|
||||
if [ -z "$release" ]; then
|
||||
# No release given, take from heartwood-release
|
||||
@@ -67,7 +60,7 @@ if [ -e "$root/flake.nix" ]; then
|
||||
sed -E -e '/npmDepsHash/s#".*"#"'"$npmDepsHash"'"#' "$root/flake.nix" >$root/flake.nix.tmp
|
||||
mv "$root/flake.nix.tmp" "$root/flake.nix"
|
||||
|
||||
nix --experimental-features 'nix-command flakes' flake update --flake git+file://"$root"
|
||||
nix --experimental-features 'nix-command flakes' flake update --flake "$root"
|
||||
else
|
||||
printf >&2 'Node dependencies may be out of date!
|
||||
Re-run on a nix-enabled system to update npmDepsHash.\n'
|
||||
|
||||
Reference in New Issue
Block a user