Add repository field to workspace package.json files for npm trusted publishing (#1202)
Some checks failed
CLI Tests / test (push) Has been cancelled
Some checks failed
CLI Tests / test (push) Has been cancelled
Previous fix only added repository.url to the root package.json, but npm publish --workspaces publishes each workspace using its own package.json. The provenance check runs per-package, so each published workspace package also needs repository.url to match the GitHub repo URL. Also adds type: "git" to the root and directory fields to the workspaces for correct monorepo linking on npm/GitHub. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
4f71458f27
commit
adfcccca52
4 changed files with 16 additions and 0 deletions
|
|
@ -6,6 +6,11 @@
|
||||||
"author": "Model Context Protocol a Series of LF Projects, LLC.",
|
"author": "Model Context Protocol a Series of LF Projects, LLC.",
|
||||||
"homepage": "https://modelcontextprotocol.io",
|
"homepage": "https://modelcontextprotocol.io",
|
||||||
"bugs": "https://github.com/modelcontextprotocol/inspector/issues",
|
"bugs": "https://github.com/modelcontextprotocol/inspector/issues",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/modelcontextprotocol/inspector",
|
||||||
|
"directory": "cli"
|
||||||
|
},
|
||||||
"main": "build/cli.js",
|
"main": "build/cli.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,11 @@
|
||||||
"author": "Model Context Protocol a Series of LF Projects, LLC.",
|
"author": "Model Context Protocol a Series of LF Projects, LLC.",
|
||||||
"homepage": "https://modelcontextprotocol.io",
|
"homepage": "https://modelcontextprotocol.io",
|
||||||
"bugs": "https://github.com/modelcontextprotocol/inspector/issues",
|
"bugs": "https://github.com/modelcontextprotocol/inspector/issues",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/modelcontextprotocol/inspector",
|
||||||
|
"directory": "client"
|
||||||
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"bin": {
|
"bin": {
|
||||||
"mcp-inspector-client": "./bin/start.js"
|
"mcp-inspector-client": "./bin/start.js"
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
"mcp-inspector": "cli/build/cli.js"
|
"mcp-inspector": "cli/build/cli.js"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
"url": "https://github.com/modelcontextprotocol/inspector"
|
"url": "https://github.com/modelcontextprotocol/inspector"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,11 @@
|
||||||
"author": "Model Context Protocol a Series of LF Projects, LLC.",
|
"author": "Model Context Protocol a Series of LF Projects, LLC.",
|
||||||
"homepage": "https://modelcontextprotocol.io",
|
"homepage": "https://modelcontextprotocol.io",
|
||||||
"bugs": "https://github.com/modelcontextprotocol/inspector/issues",
|
"bugs": "https://github.com/modelcontextprotocol/inspector/issues",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/modelcontextprotocol/inspector",
|
||||||
|
"directory": "server"
|
||||||
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"bin": {
|
"bin": {
|
||||||
"mcp-inspector-server": "build/index.js"
|
"mcp-inspector-server": "build/index.js"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue