Skip to content

fix: add package root entrypoint#308

Open
xianzuyang9-blip wants to merge 3 commits into
makenotion:mainfrom
xianzuyang9-blip:codex/add-root-package-entrypoint
Open

fix: add package root entrypoint#308
xianzuyang9-blip wants to merge 3 commits into
makenotion:mainfrom
xianzuyang9-blip:codex/add-root-package-entrypoint

Conversation

@xianzuyang9-blip

Copy link
Copy Markdown

Description

Fixes #307.

The package currently advertises main: "index.js", but no root index.js is published, so importing @notionhq/notion-mcp-server fails with ERR_MODULE_NOT_FOUND. This adds a tiny side-effect-free root entrypoint plus matching TypeScript declaration and keeps the existing CLI bin unchanged.

I kept this intentionally narrow instead of pointing the package root at the CLI bundle, so importing the package root does not start the MCP server or require Notion API configuration.

How was this change tested?

  • npm run build
  • npx vitest run (8 files / 80 tests passing)
  • npm pack then clean consumer install from the tarball
  • verified import('@notionhq/notion-mcp-server') succeeds and exports packageName
  • verified packed tarball includes index.js, index.d.ts, and existing bin/cli.mjs

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.

package main points to missing index.js

1 participant