Skip to content

Remove missing package main entry#3286

Open
Jamil Ur Rehman Ahmadzai (jamilahmadzai) wants to merge 1 commit into
contentful:mainfrom
jamilahmadzai:fix/remove-missing-package-main
Open

Remove missing package main entry#3286
Jamil Ur Rehman Ahmadzai (jamilahmadzai) wants to merge 1 commit into
contentful:mainfrom
jamilahmadzai:fix/remove-missing-package-main

Conversation

@jamilahmadzai

Copy link
Copy Markdown

Summary

  • remove the package main entry that points to dist/contentful.js
  • keep the existing bin.contentful CLI entry unchanged

Why

contentful-cli is published as a CLI package, but its package metadata currently advertises dist/contentful.js as the package main. That file is not present in the repository or published package tarball, so consumers and package validators see a broken entry point.

The CLI entry remains bin/contentful.js, which loads dist/lib/cli.js after the package build.

Fixes #3285.

Validation

  • node -e "const p=require('./package.json'); console.log({hasMain:Object.prototype.hasOwnProperty.call(p,'main'), bin:p.bin})"
  • npm pack --dry-run --json .
  • packed tarball package/package.json inspection confirmed no main entry and unchanged bin.contentful
  • git diff --check

@jamilahmadzai Jamil Ur Rehman Ahmadzai (jamilahmadzai) marked this pull request as ready for review June 23, 2026 20:58
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 dist/contentful.js

2 participants