mirror of
https://github.com/penpot/penpot.git
synced 2026-04-03 10:00:34 +02:00
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.
12 lines
238 B
Bash
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
|