fix(clickhouse): remove broken @types/hyperdx__lucene devDep before yarn install

v1.10.1 packages/app/package.json contains '@types/hyperdx__lucene': 'npm:@types/lucene'
but @types/lucene does not exist on npm (404), causing yarn install --immutable to fail.
Remove the devDependency via node patch before install and drop --immutable flag.
This commit is contained in:
CanbiZ (MickLesk)
2026-04-17 09:12:29 +02:00
parent 2834e6b7fa
commit 129b041f9d
2 changed files with 5 additions and 2 deletions

View File

@@ -49,7 +49,8 @@ function update_script() {
$STD git checkout "hyperdx@${LATEST_HDX_VERSION}"
msg_info "Building HyperDX"
$STD yarn install --immutable
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));"
$STD yarn install
$STD yarn workspace @hyperdx/common-utils run build
$STD yarn workspace @hyperdx/api run build
NEXT_OUTPUT_STANDALONE=true $STD yarn workspace @hyperdx/app run build