From 9fbad16a60d7ccc0b82d8c7b8e9c7293a62f76c3 Mon Sep 17 00:00:00 2001 From: aabccd021 Date: Thu, 5 Dec 2024 12:48:57 +0700 Subject: [PATCH] Empty --- .envrc | 3 --- .github/workflows/test.yml | 9 +++++---- bun.lockb | Bin 2695 -> 4582 bytes flake.nix | 19 ++++--------------- package.json | 5 ++++- 5 files changed, 13 insertions(+), 23 deletions(-) diff --git a/.envrc b/.envrc index 9307b21..d4b93ce 100644 --- a/.envrc +++ b/.envrc @@ -1,5 +1,2 @@ -if ! has nix_direnv_version || ! nix_direnv_version 2.1.1; then - source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.1.1/direnvrc" "sha256-b6qJ4r34rbE23yWjMqbmu3ia2z4b2wIlZUksBke/ol0=" -fi use flake layout node diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4c2c051..535f768 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,12 +10,13 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Install Nix - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/nix-installer-action@main - - run: nix run .#prettier-check + - uses: HatsuneMiku3939/direnv-action@v1 - - run: nix run .#typescript-check + - run: prettier --check . + + - run: tsc - uses: JS-DevTools/npm-publish@v3 with: diff --git a/bun.lockb b/bun.lockb index cded7bcc391399b9871f07d8cd978a60ccdcecec..2611ab59c7238d0eafaf68f2c32c06edffe5c965 100755 GIT binary patch delta 1833 zcma)64NO~A6n^hf=%Z|f3J4DQ*-(B8JZSkDFxVKGiXti~kT8U8U4b?T*ft1s4lqNQ z$fUW8#9`J&egqdB(BmGd^KH{aWY5)L=vU>~hO1SrUpTCquSxb-t5D zuzcMpswN1QBH(2jrB0_(YJ9A6fmT_rEYWG#Kz0T@`0{=uG(|ar?7~nKfYoFI-vnF; z9P1??j~)N>V!z&ae@$peo$|m;UPQ(_Ap=ck4tC|WyY5@*?r(m zXG4FPWG8?pK(IY?VH_mn`a;I-Lv3%Z85^%)g0+| zzTx?`J=5KVXJU^2q?&khufOhUZ{qD+UJ_NVcZ=Vnowt);Y&?vfvGc6fPx^c`_(0o2 z-i45}#?_FX;bCJ zq$Onl(xje*|^J=K>ML`x%tXT9G?^{Tdc>0I>HwVcxVksx?Tk}%X@ z7D<>A%(R*gxhB{*|Z4N3Ka3SWkt5fTo9Q&3@uBv!jWl5hLeDnbCDR0BJ)oFW8tR_cm1#pf*`lZ?Ql8< zy)E>NA%oBmp3@ZYUSb?WAC^aOGC3DZMx$eC!st@^i9xVLbMhE2igIDlUqVk2E5^sC zs1z~sVUr%wX%)OUyyDiOIo|AcKvfcsb;^^Yo-&ZAL-rA2>Zc zdXL0Lo9GJhYK0ZJ&(1|7X* z8>aBE@C_l1zdcS@ScM}Uvbo<*4D88N7hQc1O@Fx z{it5Gt+tjx86yKdLnA$lXAF~jcqLRY6=(sqfIu7vjGlag*FmcT%6$)wTP~YY3p)iv kh2qSr)ciCZAS*E^Gd(XqjcalRpWNhq{L-5h1dcHR0Oe100{{R3 diff --git a/flake.nix b/flake.nix index 2e7f485..b2b6efb 100644 --- a/flake.nix +++ b/flake.nix @@ -6,29 +6,18 @@ outputs = { nixpkgs, ... }: let pkgs = nixpkgs.legacyPackages.x86_64-linux; + in { devShells.x86_64-linux.default = pkgs.mkShellNoCC { + shellHook = '' + export PLAYWRIGHT_BROWSERS_PATH=${pkgs.playwright-driver.browsers-chromium} + ''; buildInputs = [ pkgs.bun - pkgs.typescript ]; }; - apps.x86_64-linux.prettier-check = { - type = "app"; - program = toString(pkgs.writeShellScript "prettier-check" '' - ${pkgs.nodePackages.prettier}/bin/prettier --check . - ''); - }; - - apps.x86_64-linux.typescript-check = { - type = "app"; - program = toString(pkgs.writeShellScript "typescript-check" '' - ${pkgs.typescript}/bin/tsc --noEmit - ''); - }; - }; } diff --git a/package.json b/package.json index d716f75..80c8e69 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,9 @@ "lint": "eslint . --ext ts" }, "devDependencies": { - "@types/bun": "^1.1.14" + "@types/bun": "^1.1.14", + "playwright": "1.47.2", + "prettier": "^3.4.2", + "typescript": "^5.7.2" } }