diff --git a/package.json b/package.json index 48b8ebba..10cdcfa3 100644 --- a/package.json +++ b/package.json @@ -118,7 +118,13 @@ "dependencies": { "@anthropic-ai/claude-agent-sdk": "^0.2.119", "@clack/prompts": "^1.2.0", + "@derekstride/tree-sitter-sql": "^0.3.11", "@modelcontextprotocol/sdk": "^1.29.0", + "@tree-sitter-grammars/tree-sitter-lua": "^0.4.1", + "@tree-sitter-grammars/tree-sitter-markdown": "^0.3.2", + "@tree-sitter-grammars/tree-sitter-toml": "^0.7.0", + "@tree-sitter-grammars/tree-sitter-yaml": "^0.7.1", + "@tree-sitter-grammars/tree-sitter-zig": "^1.1.2", "ansi-to-html": "^0.7.2", "dompurify": "^3.4.1", "express": "^5.2.1", @@ -127,31 +133,6 @@ "picocolors": "^1.1.1", "react": "^19.2.5", "react-dom": "^19.2.5", - "yaml": "^2.8.3", - "zod": "^4.3.6", - "zod-to-json-schema": "^3.25.2" - }, - "devDependencies": { - "@derekstride/tree-sitter-sql": "^0.3.11", - "@tree-sitter-grammars/tree-sitter-lua": "^0.4.1", - "@tree-sitter-grammars/tree-sitter-markdown": "^0.3.2", - "@tree-sitter-grammars/tree-sitter-toml": "^0.7.0", - "@tree-sitter-grammars/tree-sitter-yaml": "^0.7.1", - "@tree-sitter-grammars/tree-sitter-zig": "^1.1.2", - "@types/bun": "^1.3.13", - "@types/cors": "^2.8.19", - "@types/dompurify": "^3.2.0", - "@types/express": "^5.0.6", - "@types/node": "^25.6.0", - "@types/react": "^19.2.14", - "@types/react-dom": "^19.2.3", - "esbuild": "^0.28.0", - "jimp": "^1.6.1", - "np": "^11.2.0", - "parse5": "^8.0.1", - "postcss": "^8.5.13", - "remark-mdx": "^3.1.1", - "remark-parse": "^11.0.0", "tree-sitter-bash": "^0.25.1", "tree-sitter-c": "^0.24.1", "tree-sitter-cli": "^0.26.8", @@ -171,6 +152,25 @@ "tree-sitter-scss": "^1.0.0", "tree-sitter-swift": "^0.7.1", "tree-sitter-typescript": "^0.23.2", + "yaml": "^2.8.3", + "zod": "^4.3.6", + "zod-to-json-schema": "^3.25.2" + }, + "devDependencies": { + "@types/bun": "^1.3.13", + "@types/cors": "^2.8.19", + "@types/dompurify": "^3.2.0", + "@types/express": "^5.0.6", + "@types/node": "^25.6.0", + "@types/react": "^19.2.14", + "@types/react-dom": "^19.2.3", + "esbuild": "^0.28.0", + "jimp": "^1.6.1", + "np": "^11.2.0", + "parse5": "^8.0.1", + "postcss": "^8.5.13", + "remark-mdx": "^3.1.1", + "remark-parse": "^11.0.0", "ts-prune": "^0.10.3", "tsx": "^4.21.0", "typescript": "^6.0.3", diff --git a/src/npx-cli/commands/install.ts b/src/npx-cli/commands/install.ts index fb5dff7a..debd4dcd 100644 --- a/src/npx-cli/commands/install.ts +++ b/src/npx-cli/commands/install.ts @@ -539,7 +539,11 @@ function runNpmInstallInMarketplace(): void { if (!existsSync(packageJsonPath)) return; - execSync('npm install --production', { + // --legacy-peer-deps suppresses a known false-positive ERESOLVE between + // tree-sitter@0.21 and @tree-sitter-grammars/* peer ranges. The native + // bindings path is unused (we load .wasm), so the conflict is benign. + // Revisit if real peer constraints are added to the marketplace deps. + execSync('npm install --omit=dev --legacy-peer-deps', { cwd: marketplaceDir, stdio: 'pipe', encoding: 'utf8',