Skip to content

Remove unnecessary library export fields from package.json#60

Closed
pullfrog[bot] wants to merge 1 commit intomainfrom
pullfrog/58-remove-unnecessary-exports-entry
Closed

Remove unnecessary library export fields from package.json#60
pullfrog[bot] wants to merge 1 commit intomainfrom
pullfrog/58-remove-unnecessary-exports-entry

Conversation

@pullfrog
Copy link
Contributor

@pullfrog pullfrog bot commented Dec 9, 2025

Summary

Removes unnecessary library-specific fields from package.json since zshy is a CLI tool that doesn't export a programmatic API.

Changes

Removed the following fields:

  • module - ES module entry point for library imports
  • main - CommonJS entry point for library imports
  • types - TypeScript type definitions for library imports
  • exports - Conditional exports for library imports

The bin field remains as the correct way to declare the CLI entry point.

Rationale

These fields suggest that zshy can be imported and used as a library (import zshy from 'zshy'), but the actual code in src/index.ts only executes the CLI and doesn't export any programmatic API. Having these fields is misleading and unnecessary.

Fixes #58

zshy is a CLI tool that doesn't export a programmatic API, so the
module, main, types, and exports fields are unnecessary and misleading.

The bin field correctly declares the CLI entry point.

Fixes #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.

Remove unnecessary exports entry?

1 participant