Files
penpot/mcp/scripts/pack
Dominik Jain 2e24f1e2de 🐛 Fix lock file not being included in npm package
The root lock file not being present causes issues, because
the sub-project dependencies are managed by it.

The lack of inclusion of pnpm-lock.yaml was the root cause of #8829.
A dependency was updated incompatibly, breaking the release.

Since npm pack has a hard exclusion rule for pnpm-lock.yaml,
we include it under a different name and restore it at runtime.
2026-03-31 17:19:04 +02:00

12 lines
238 B
Bash

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
# pnpm-lock.yaml is hard-excluded by npm, but we need it; ship it under a neutral name
cp pnpm-lock.yaml pnpm-lock.dist.yaml
trap 'rm -f pnpm-lock.dist.yaml' EXIT
npm pack