Update v1.3.1 session learnings with release package fixes

- Document vendor .git exclusion requirement for release packages
- Update package size to 775KB (650 files) after proper exclusions
- Add correct zip parent directory path for release creation
- Document .claude/settings.json addition to .gitignore

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-27 19:36:56 +01:00
parent 74cc56005e
commit 38e9506d4e

View File

@@ -1200,8 +1200,8 @@ The plugin architecture is solid and well-tested. Most bugs arise from:
- All 7 language files updated and compiled - All 7 language files updated and compiled
6. Created release package: 6. Created release package:
- Package size: 745KB - Package size: 775KB (after proper exclusions)
- 642 files included - 650 files included
- SHA256 checksum generated - SHA256 checksum generated
7. Updated README.md: 7. Updated README.md:
@@ -1209,6 +1209,10 @@ The plugin architecture is solid and well-tested. Most bugs arise from:
- Updated PHP requirement to 8.3 - Updated PHP requirement to 8.3
- Added v1.3.0 and v1.3.1 changelog entries - Added v1.3.0 and v1.3.1 changelog entries
8. Re-released v1.3.1:
- Fixed release package exclusions (vendor .git dirs were included)
- Added `.claude/settings.json` to .gitignore
**Key Learnings:** **Key Learnings:**
- `SecureLicenseClient` requires `serverSecret` parameter for HMAC verification - `SecureLicenseClient` requires `serverSecret` parameter for HMAC verification
@@ -1216,6 +1220,13 @@ The plugin architecture is solid and well-tested. Most bugs arise from:
- `RateLimitExceededException` has a `retryAfter` property (int seconds) - `RateLimitExceededException` has a `retryAfter` property (int seconds)
- Always check library documentation in `docs/server-implementation.md` for implementation requirements - Always check library documentation in `docs/server-implementation.md` for implementation requirements
**Release Package Learnings (CRITICAL):**
- Vendor directories installed via Composer (dev-main) contain their own `.git/` folders
- Release exclusion patterns must include `'wc-tier-and-package-prices/vendor/*/.git/*'` and `'wc-tier-and-package-prices/vendor/*/CLAUDE.md'`
- Run zip from `/home/magdev/workspaces/php/wordpress/wp-content/plugins/` (NOT `/home/magdev/workspaces/php/`)
- Always verify exclusions with: `unzip -l package.zip | grep -E "\.git/|CLAUDE\.md"`
--- ---
Always refer to this document when starting work on this project. Good luck! Always refer to this document when starting work on this project. Good luck!