mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 09:05:36 +01:00
Use pnpm copy method for Modal compatibility
Add --package-import-method=copy to all pnpm install commands in niteshift-setup.sh. This ensures packages are copied instead of hard-linked, which is required for proper functionality in Modal's containerized environment where hard links don't work across filesystem layers. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
9d1b4e3665
commit
1c440c9e1c
1 changed files with 3 additions and 3 deletions
|
|
@ -71,18 +71,18 @@ log "✓ pnpm is available"
|
||||||
# 4. Install dependencies
|
# 4. Install dependencies
|
||||||
if [[ "$USE_PREBAKED_SETUP" -eq 0 ]]; then
|
if [[ "$USE_PREBAKED_SETUP" -eq 0 ]]; then
|
||||||
log "Installing dependencies with pnpm..."
|
log "Installing dependencies with pnpm..."
|
||||||
if ! pnpm install --frozen-lockfile; then
|
if ! pnpm install --package-import-method=copy --frozen-lockfile; then
|
||||||
log_error "Failed to install dependencies"
|
log_error "Failed to install dependencies"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
log "✓ Dependencies installed"
|
log "✓ Dependencies installed"
|
||||||
else
|
else
|
||||||
log "Linking dependencies from prebaked pnpm store..."
|
log "Linking dependencies from prebaked pnpm store..."
|
||||||
if pnpm install --frozen-lockfile --offline; then
|
if pnpm install --package-import-method=copy --frozen-lockfile --offline; then
|
||||||
log "✓ Dependencies installed (offline)"
|
log "✓ Dependencies installed (offline)"
|
||||||
else
|
else
|
||||||
log_error "Offline install failed, falling back to full pnpm install"
|
log_error "Offline install failed, falling back to full pnpm install"
|
||||||
if ! pnpm install --frozen-lockfile; then
|
if ! pnpm install --package-import-method=copy --frozen-lockfile; then
|
||||||
log_error "Failed to install dependencies even after fallback"
|
log_error "Failed to install dependencies even after fallback"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue