From e41e48046650f51fada952ce0266499bc2dbf8a4 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 17 Apr 2026 11:42:37 +0200 Subject: [PATCH] fix(clickhouse): properly strip @types/hyperdx__lucene from yarn.lock - Use sed to remove all lines referencing the alias from yarn.lock (both block headers and inline workspace dependency refs) - Also strip @types/lucene resolution target (package doesn't exist) - Remove .yarn/install-state.gz to clear Yarn Berry cached state - Keep node -e for package.json cleanup (devDeps + resolutions) --- install/clickhouse-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install/clickhouse-install.sh b/install/clickhouse-install.sh index 2be281fc..b672e390 100644 --- a/install/clickhouse-install.sh +++ b/install/clickhouse-install.sh @@ -211,8 +211,10 @@ EOF msg_info "Building HyperDX" # Remove broken devDependency (@types/lucene does not exist on npm) - node -e "const fs=require('fs'),p=JSON.parse(fs.readFileSync('packages/app/package.json','utf8'));delete p.devDependencies['@types/hyperdx__lucene'];fs.writeFileSync('packages/app/package.json',JSON.stringify(p,null,2));" + node -e "const fs=require('fs'),p=JSON.parse(fs.readFileSync('packages/app/package.json','utf8'));delete p.devDependencies['@types/hyperdx__lucene'];if(p.resolutions) delete p.resolutions['@types/hyperdx__lucene'];fs.writeFileSync('packages/app/package.json',JSON.stringify(p,null,2));" sed -i '/@types\/hyperdx__lucene/d' yarn.lock + sed -i '/@types\/lucene/d' yarn.lock + rm -f .yarn/install-state.gz $STD yarn install $STD yarn workspace @hyperdx/common-utils run build $STD yarn workspace @hyperdx/api run build