Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/npm-package/__tests__/package-metadata.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const packageManifest = {
version: '0.1.0',
description: 'CodeGraph MCP Server',
type: 'module',
bin: { 'codegraph-mcp': './bin/codegraph-mcp.mjs' },
bin: { 'codegraph-mcp': 'bin/codegraph-mcp.mjs' },
keywords: ['mcp', 'code-search'],
author: { name: 'Randy Wilson' },
license: 'MIT',
Expand Down Expand Up @@ -78,7 +78,7 @@ describe('createPublishedManifest', () => {
repository: packageManifest.repository,
bugs: packageManifest.bugs,
publishConfig: { access: 'public' },
bin: packageManifest.bin,
bin: { 'codegraph-mcp': 'bin/codegraph-mcp.mjs' },
engines: packageManifest.engines,
keywords: packageManifest.keywords,
});
Expand Down
2 changes: 1 addition & 1 deletion packages/npm-package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "CodeGraph MCP Server: Index any codebase into a graph database. Search by meaning, trace relationships, and manage project knowledge.",
"type": "module",
"bin": {
"codegraph-mcp": "./bin/codegraph-mcp.mjs"
"codegraph-mcp": "bin/codegraph-mcp.mjs"
},
"main": "./server/index.mjs",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/release/__tests__/validate-package.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function createValidFixture(): string {
bugs: { url: 'https://github.com/Phoenixrr2113/codebase-graph/issues' },
engines: { node: '>=20.0.0' },
publishConfig: { access: 'public' },
bin: { 'codegraph-mcp': './bin/codegraph-mcp.mjs' },
bin: { 'codegraph-mcp': 'bin/codegraph-mcp.mjs' },
dependencies: { 'tree-sitter': '^0.22.4' },
}));
return directory;
Expand Down
4 changes: 2 additions & 2 deletions scripts/release/validate-package.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ export async function validatePackageDirectory(directoryUrl) {

const bin = requireRecord(manifest.bin, 'package.json bin', violations);
const binRelativePath = bin['codegraph-mcp'];
if (binRelativePath !== './bin/codegraph-mcp.mjs') {
violations.push('package.json bin must map codegraph-mcp to ./bin/codegraph-mcp.mjs');
if (binRelativePath !== 'bin/codegraph-mcp.mjs') {
violations.push('package.json bin must map codegraph-mcp to bin/codegraph-mcp.mjs');
} else {
try {
const binStats = await lstat(join(directory, binRelativePath));
Expand Down
Loading