fix: copy repo README to CLI for npm publishing

build-npm.sh now copies the root README.md into cli/ so the npm package
page shows the same README as the GitHub repo. release.sh cleans up the
copy after publishing during the restore step.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dotta
2026-03-03 15:05:41 -06:00
parent 24b393b08f
commit c11d2d3eda
2 changed files with 8 additions and 0 deletions

View File

@@ -178,6 +178,11 @@ if [ -f "$CLI_DIR/package.dev.json" ]; then
echo " ✓ Restored workspace dependencies in cli/package.json"
fi
# Remove the README copied for npm publishing
if [ -f "$CLI_DIR/README.md" ]; then
rm "$CLI_DIR/README.md"
fi
# Commit all changes
git add -A
git commit -m "chore: release v$NEW_VERSION"