Files
penpot/mcp/scripts/pack
Dominik Jain c9d9e493e7 🎉 Prepare npm package for MCP server (#8473)
* 🎉 Prepare npm package for MCP server

* 🐛 Re-establish Windows compatibility of MCP server build script

Use node instead of cp to copy files

*  Set version for MCP npm tarball based on git tag

* Add scripts/set-version to set the version in package.json
  based on git describe information
* Add scripts/pack to perform the packaging
2026-03-04 08:41:28 +01:00

13 lines
284 B
Bash

#!/usr/bin/env bash
#
# Sets the version from Git tags, then produces the npm tarball.
# Must be invoked directly (not via npm/pnpm) so that the version
# is written to package.json before npm reads it.
set -euo pipefail
cd "$(dirname "$0")/.."
bash ./scripts/set-version
npm pack