mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-06-01 13:19:35 +02:00
Refactor kan installation script to ignore scripts during pnpm install and update tsconfig path
This commit is contained in:
@@ -49,8 +49,10 @@ function update_script() {
|
||||
msg_info "Building Application"
|
||||
cd /opt/kan
|
||||
set -a && source /opt/kan/.env && set +a
|
||||
export NEXT_PUBLIC_USE_STANDALONE_OUTPUT=true CI=true
|
||||
$STD pnpm install
|
||||
export NEXT_PUBLIC_USE_STANDALONE_OUTPUT=true
|
||||
$STD pnpm install --ignore-scripts
|
||||
export CI=true
|
||||
sed -i 's|"@kan/tsconfig/internal-package.json"|"../../tooling/typescript/internal-package.json"|g' /opt/kan/packages/logger/tsconfig.json
|
||||
$STD pnpm build --filter=@kan/web
|
||||
unset NEXT_PUBLIC_USE_STANDALONE_OUTPUT CI
|
||||
msg_ok "Built Application"
|
||||
|
||||
@@ -45,8 +45,9 @@ msg_info "Building Application"
|
||||
cd /opt/kan
|
||||
set -a && source /opt/kan/.env && set +a
|
||||
export NEXT_PUBLIC_USE_STANDALONE_OUTPUT=true NEXT_PUBLIC_BASE_URL BETTER_AUTH_TRUSTED_ORIGINS NEXT_PUBLIC_ALLOW_CREDENTIALS BETTER_AUTH_SECRET
|
||||
$STD pnpm install --ignore-scripts
|
||||
export CI=true
|
||||
$STD pnpm install
|
||||
sed -i 's|"@kan/tsconfig/internal-package.json"|"../../tooling/typescript/internal-package.json"|g' /opt/kan/packages/logger/tsconfig.json
|
||||
$STD pnpm build --filter=@kan/web
|
||||
unset NEXT_PUBLIC_USE_STANDALONE_OUTPUT CI
|
||||
msg_ok "Built Application"
|
||||
|
||||
Reference in New Issue
Block a user