fix: strip package.json from zip and document HTTP local-dev setup#7
Merged
fix: strip package.json from zip and document HTTP local-dev setup#7
Conversation
…etup The files field was added to force-include LICENSE in the zip, but npm-packlist unconditionally bundles package.json whenever files is set — there is no escape hatch. The zip -d workaround was non-standard: no other plugin in the woocommerce org uses that pattern. Standard wp-scripts behaviour (no files field, .distignore for exclusions) is used by every other plugin that ships with plugin-zip. LICENSE omission is normal for WP plugins — the license is declared in the plugin header's License/License URI fields, which is what WordPress.org reads. .distignore already excludes the build tooling. README: replace the bare filter name with the actual mu-plugin one-liner so contributors know exactly what to drop to test the MCP endpoint over HTTP on a local wp-env install. Cross-link the step-3 mention to the local development section. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2382ccc to
6469e79
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
package.jsonwhen afilesfield is present — it's an invariant of how the tool works, not a wp-scripts bug. Fix is a post-buildzip -din theplugin-zipscript to strip it before the file is used anywhere.Changes
package.jsonREADME.md— local development section:Verified locally
🤖 Generated with Claude Code