Fix react-doctor: add postPatch to generate package-lock.json

This commit is contained in:
2026-02-20 20:26:54 +11:00
parent 5dd038586f
commit 43cdb7c747

View File

@@ -6,13 +6,17 @@ buildNpmPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "millionco"; owner = "millionco";
repo = "react-doctor"; repo = "react-doctor";
rev = "v${version}"; rev = "0.0.1";
hash = "sha256-T8szJcXeqIWmZQU/D4KpeFU1ZXilThL5JBmw2Y0hZkw="; hash = "sha256-T8szJcXeqIWmZQU/D4KpeFU1ZXilThL5JBmw2Y0hZkw=";
}; };
npmDepsHash = lib.fakeHash; npmDepsHash = lib.fakeHash;
npmBuild = "build"; # CRITICAL: Generate package-lock.json during build
postPatch = ''
cd $sourceRoot
npm install --package-lock-only --no-audit --progress=false
'';
meta = with lib; { meta = with lib; {
description = "Let coding agents diagnose and fix your React code"; description = "Let coding agents diagnose and fix your React code";