fix(clickhouse): also strip @types/hyperdx__lucene from yarn.lock

Removing from packages/app/package.json devDependencies alone is not
enough — Yarn Berry still resolves the alias from yarn.lock entries.
sed removes all yarn.lock lines referencing the broken package.
This commit is contained in:
CanbiZ (MickLesk)
2026-04-17 10:06:14 +02:00
parent e5e3958985
commit 7ba0de6ef0

View File

@@ -212,6 +212,7 @@ 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));"
sed -i '/@types\/hyperdx__lucene/d' yarn.lock
$STD yarn install
$STD yarn workspace @hyperdx/common-utils run build
$STD yarn workspace @hyperdx/api run build