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

@@ -210,7 +210,9 @@ EOF
msg_ok "Enabled Corepack"
msg_info "Building HyperDX"
$STD yarn install --immutable
# 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));"
$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