From 1c440c9e1cdf9daffdd0563c3b1e050c47a443fe Mon Sep 17 00:00:00 2001 From: Sajid Mehmood Date: Sun, 16 Nov 2025 15:37:57 -0500 Subject: [PATCH] Use pnpm copy method for Modal compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- niteshift-setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/niteshift-setup.sh b/niteshift-setup.sh index 495854aa..b5787d4b 100755 --- a/niteshift-setup.sh +++ b/niteshift-setup.sh @@ -71,18 +71,18 @@ log "✓ pnpm is available" # 4. Install dependencies if [[ "$USE_PREBAKED_SETUP" -eq 0 ]]; then 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" exit 1 fi log "✓ Dependencies installed" else 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)" else 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" exit 1 fi