Skip to content

Add packageManager field to express-mcp-test package.json - #2

Open
railway-app[bot] wants to merge 1 commit into
mainfrom
railway/code-change-Yyfk5M
Open

Add packageManager field to express-mcp-test package.json#2
railway-app[bot] wants to merge 1 commit into
mainfrom
railway/code-change-Yyfk5M

Conversation

@railway-app

@railway-app railway-app Bot commented Apr 28, 2026

Copy link
Copy Markdown

Problem

Railpack detects npm instead of pnpm when building from the /examples/express-mcp-test subdirectory, causing the build to fail with npm error Unsupported URL Type "workspace:": workspace:*. The packageManager field only exists in the root package.json, which Railpack never sees because the service's rootDirectory is set to /examples/express-mcp-test.

Solution

Added "packageManager": "pnpm@latest" directly to examples/express-mcp-test/package.json. Railpack reads this field to determine the package manager, so placing it in the subdirectory's own package.json ensures pnpm is selected and can correctly resolve the workspace:* dependency protocol.

Changes

  • Modified examples/express-mcp-test/package.json

Generated by Railway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants