Commit 8295196
fix(version): scope git add to files stamp-version.js writes (#339)
Replaces 'git add -A' in the npm version lifecycle script with an
explicit allowlist:
- package.json
- package-lock.json (npm version writes this)
- .claude-plugin/plugin.json
- .claude-plugin/marketplace.json
- site/content.json
Original PR #339 from xiaolai (NLPM audit) flagged that 'git add -A'
sweeps any unrelated working-tree changes into the version commit.
This is the broadened-allowlist version per Copilot's review suggestion -
preserves the intent (no working-tree sweep) while keeping all version
manifests in sync.
Co-authored-by: Avi Fenesh <aviarchi1994@gmail.com>
Co-authored-by: xiaolai <xiaolai@users.noreply.github.com>1 parent f369ac4 commit 8295196
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments