Fix react-doctor: add postPatch to generate package-lock.json
This commit is contained in:
@@ -6,13 +6,17 @@ buildNpmPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "millionco";
|
||||
repo = "react-doctor";
|
||||
rev = "v${version}";
|
||||
rev = "0.0.1";
|
||||
hash = "sha256-T8szJcXeqIWmZQU/D4KpeFU1ZXilThL5JBmw2Y0hZkw=";
|
||||
};
|
||||
|
||||
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; {
|
||||
description = "Let coding agents diagnose and fix your React code";
|
||||
|
||||
Reference in New Issue
Block a user