The existing packages/gittensory-mcp package has two CI guardrails that keep its publish shape honest: test:mcp-pack (scripts/check-mcp-package.mjs, verifying the published files list actually contains everything needed) and build:mcp (a node --check syntax-validation pass over the bin/lib/scripts files). packages/gittensory-miner (scaffolded in an earlier issue) needs the equivalent pair so a broken miner-package publish is caught in CI the same way a broken mcp-package publish already is.
Deliverables
References
scripts/check-mcp-package.mjs — the exact existing checker to copy/retarget
- root
package.json scripts "test:mcp-pack" and "build:mcp" — the exact script-entry pattern to mirror for the miner package
packages/gittensory-miner/package.json (from the miner-scaffold issue) — the package this checker validates
The existing
packages/gittensory-mcppackage has two CI guardrails that keep its publish shape honest:test:mcp-pack(scripts/check-mcp-package.mjs, verifying the publishedfileslist actually contains everything needed) andbuild:mcp(anode --checksyntax-validation pass over the bin/lib/scripts files).packages/gittensory-miner(scaffolded in an earlier issue) needs the equivalent pair so a broken miner-package publish is caught in CI the same way a broken mcp-package publish already is.Deliverables
scripts/check-miner-package.mjs— copyscripts/check-mcp-package.mjs's structure and logic, retargeted atpackages/gittensory-miner(verifypackage.json'sfilesarray covers every file actually needed to runbin/gittensory-miner.js, and that the declaredbinpath exists and is executable).package.jsonscript"test:miner-pack": "node scripts/check-miner-package.mjs", mirroring the existing"test:mcp-pack": "node scripts/check-mcp-package.mjs"entry.package.jsonscript"build:miner": "npm --workspace @jsonbored/gittensory-miner run build", mirroring the existing"build:mcp"entry (the package-levelbuildscript itself was added in the miner-scaffold issue).test/unit/check-miner-package.test.ts(mirror whatever test already exists forcheck-mcp-package.mjs, if one does — otherwise a small script-invocation test asserting the checker exits 0 on a well-formed package and non-zero on afilesarray missing a required path).References
scripts/check-mcp-package.mjs— the exact existing checker to copy/retargetpackage.jsonscripts"test:mcp-pack"and"build:mcp"— the exact script-entry pattern to mirror for the miner packagepackages/gittensory-miner/package.json(from the miner-scaffold issue) — the package this checker validates