From e8ed13e982b9f6d1093a7f3f3aa8d14de04be653 Mon Sep 17 00:00:00 2001 From: GarandPLG Date: Wed, 22 Oct 2025 17:02:30 +0200 Subject: [PATCH] Update development scripts and bump dependencies --- README.md | 1 + flake.nix | 29 +++++++---------------------- package.json | 4 ++-- 3 files changed, 10 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index afe4675..e5bbc49 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ This repository is a continuation of [Gregory Bouteiller's astro-pocketbase](htt ## Changes from Original ### Project Structure +- Added `flake.nix` for **NixOS** development environment. - Removed `doc/`, `playground/` and monorepo configuration. - Replaced `pnpm` and `node` in favor of `bun`. - Switched `.github/` to `.gitea/` and `gh` to `tea`. diff --git a/flake.nix b/flake.nix index 174ebbd..0063176 100644 --- a/flake.nix +++ b/flake.nix @@ -35,9 +35,13 @@ echo "" echo "Available commands:" echo " bun install - Install dependencies" - echo " bun run dev - Start development" - echo " bun build - Build with Bun's bundler" - echo " tea releases create - Create Gitea release" + echo " bun run dev - Start development (build with --watch flag)" + echo " bun run build - Build library" + echo " bun run lint - Run Biome check" + echo " bun run lint:w - Run Biome check (with --write)" + echo " bun run format - Run Biome format" + echo " bun run format:w - Run Biome format (with --write)" + echo " bun run release - Run release script" echo "" if [ ! -d "node_modules" ]; then @@ -49,25 +53,6 @@ NODE_ENV = "development"; BUN_RUNTIME = "bun"; }; - - packages.default = pkgs.stdenv.mkDerivation { - name = "astro-pocketbase-continue"; - src = ./.; - - buildInputs = [ bun ]; - - buildPhase = '' - export HOME=$TMPDIR - bun install --frozen-lockfile - bun run build - ''; - - installPhase = '' - mkdir -p $out - cp -r dist $out/ - cp package.json $out/ - ''; - }; } ); } diff --git a/package.json b/package.json index 503c3d2..833830d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "astro-pocketbase-continue", - "version": "0.13.0", + "version": "0.13.1", "description": "Astro integration to ease the use of PocketBase in your Astro projects", "author": { "email": "garandplg@garandplg.com", @@ -50,7 +50,7 @@ "astro-integration-kit": "^0.19.1", "dotenv": "^17.2.3", "es-toolkit": "^1.40.0", - "zod-pocketbase-continue": "^0.6.0" + "zod-pocketbase-continue": "^0.6.1" }, "devDependencies": { "@biomejs/biome": "2.2.6",