mirror of
https://github.com/penpot/penpot.git
synced 2026-03-13 13:57:21 +00:00
* 🎉 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
13 lines
284 B
Bash
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
|