From 481758e33bd323b2f840277d414ec2ac825e05b1 Mon Sep 17 00:00:00 2001 From: trev Date: Wed, 16 Apr 2025 01:19:56 -0400 Subject: [PATCH] feat: fix nix update command --- .github/workflows/lint.yaml | 4 ++++ .scripts/update.sh | 2 +- .treli.yaml | 7 +++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 1e6e39b..746c853 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -25,6 +25,10 @@ jobs: with: name: treli authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + + - name: Install NPM Packages + working-directory: ./client + run: npm ci --legacy-peer-deps - name: Lint run: nix develop --command trevstack-lint \ No newline at end of file diff --git a/.scripts/update.sh b/.scripts/update.sh index 021c9aa..63a3eba 100755 --- a/.scripts/update.sh +++ b/.scripts/update.sh @@ -23,7 +23,7 @@ fi echo "updating nix" cd "${git_root}" -nix-update --flake --version=skip default +nix-update --flake --version=skip --subpackage trevstack-client trevstack if ! git diff --exit-code flake.nix; then git add flake.nix git commit -m "build(nix): updated nix hashes" diff --git a/.treli.yaml b/.treli.yaml index 9332db7..f5ce22a 100644 --- a/.treli.yaml +++ b/.treli.yaml @@ -24,6 +24,13 @@ apps: onstart: go build -o ./tmp/app -tags dev && ./tmp/app onchange: go build -o ./tmp/app -tags dev && ./tmp/app + nix: + color: "#74c7ec" + exts: + - nix + onstart: nix fmt + onchange: nix fmt + prettier: color: "#fab387" dir: client