Skip to content

feat(packaging): configure for bunx compatibility#1

Open
imsakg wants to merge 3 commits into
edricgsh:mainfrom
imsakg:main
Open

feat(packaging): configure for bunx compatibility#1
imsakg wants to merge 3 commits into
edricgsh:mainfrom
imsakg:main

Conversation

@imsakg

@imsakg imsakg commented Jul 1, 2025

Copy link
Copy Markdown

Adds the necessary fields to package.json to allow the project to be executed with bunx.

  • Adds the bin field to define the executable command.
  • Sets preferGlobal to true as is common for CLI tools.
  • Populates the files array to ensure the dist directory is included when publishing.
  • Adds standard package metadata including keywords, license, and repository to improve package discoverability.

imsakg added 3 commits July 1, 2025 13:36
Adds the necessary fields to `package.json` to allow the project to be executed with `bunx`.

- Adds the `bin` field to define the executable command.
- Sets `preferGlobal` to `true` as is common for CLI tools.
- Populates the `files` array to ensure the `dist` directory is included when publishing.
- Adds standard package metadata including `keywords`, `license`, and `repository` to improve package discoverability.
- Change executable in package.json bin from dist/index.js to src/index.ts
- Update shebang in src/index.ts from node to bun for runtime compatibility
- Clean up trailing whitespace and improve formatting in source code
- Include `src/**/*` and `tsconfig.json` in published files for proper source
  inclusion.
- Change moduleResolution to "bundler" and enable importing TypeScript
  extensions in tsconfig for improved compatibility.
- Set noEmit to true to prevent output emission during compilation.
- Fix import paths in source code to use `.ts` extensions.
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