Skip to content

Fix package module entry#193

Open
elevenland48-crypto wants to merge 1 commit into
browserbase:mainfrom
elevenland48-crypto:codex/fix-browserbase-module-entry
Open

Fix package module entry#193
elevenland48-crypto wants to merge 1 commit into
browserbase:mainfrom
elevenland48-crypto:codex/fix-browserbase-module-entry

Conversation

@elevenland48-crypto

Copy link
Copy Markdown

Summary

@browserbasehq/mcp currently declares module: "./src/index.ts", but src/index.ts is not included in the published package. This can send bundlers or other tooling that honor the legacy module field to an unpublished source file.

This changes module to ./index.js, which is included in the package and already re-exports the public entrypoint from ./dist/index.js.

Validation

  • node -e "const fs=require('fs'); const p=require('./package.json'); console.log(p.module); if (!fs.existsSync(p.module)) process.exit(1);"
  • corepack prepare pnpm@10.12.4 --activate
  • pnpm install --frozen-lockfile
  • pnpm build
  • pnpm test (3 files, 15 tests)
  • npm pack --dry-run --ignore-scripts --json .

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.

1 participant