Skip to content

Commit 08d4680

Browse files
MohsinHashmi-DataInnmohsin-wiserclaude
authored
fix(devcontainer): add npm install fallback in post-create script (#331)
Add fallback from npm ci to npm install when lockfiles are out of sync. This fixes devpod setup failures when package-lock.json is not in sync with package.json (e.g., missing typescript@5.9.3). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Mohsin Hashmi <mhashmi@wiser.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent aac6630 commit 08d4680

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.devcontainer/post-create.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ echo "🚀 Setting up SimpleAccounts-UAE development environment..."
77

88
# Install root dependencies
99
echo "📦 Installing root npm dependencies..."
10-
npm ci --prefer-offline
10+
npm ci --prefer-offline || npm install
1111

1212
# Install frontend dependencies
1313
echo "📦 Installing frontend dependencies..."
1414
cd apps/frontend
15-
npm ci --legacy-peer-deps --prefer-offline
15+
npm ci --legacy-peer-deps --prefer-offline || npm install --legacy-peer-deps
1616
cd ../..
1717

1818
# Install Playwright browsers (using system Chromium)

0 commit comments

Comments
 (0)