#!/usr/bin/env bash
# Runs once, on the container's first start. Idempotent.
set -euo pipefail

echo "▶ Enabling corepack (pnpm shim from package.json#packageManager)…"
corepack enable

echo "▶ pnpm install --frozen-lockfile…"
pnpm install --frozen-lockfile

echo "✓ Devcontainer ready."
echo "  Suggested next: pnpm exec nx run-many -t lint test --parallel=3"
