Skip to content

Fix package.json: remove invalid "type": "module" and correct engines.node constraint#29

Merged
naheel0 merged 2 commits into
packagefrom
copilot/sub-pr-28
Mar 1, 2026
Merged

Fix package.json: remove invalid "type": "module" and correct engines.node constraint#29
naheel0 merged 2 commits into
packagefrom
copilot/sub-pr-28

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 1, 2026

package.json declared "type": "module" while every source file (bin/index.js, all lib/) uses CommonJS (require/module.exports), causing an immediate runtime crash. Additionally, engines.node was set to >=18.0.0 despite commander@14 and ora@9 both requiring >=20.

Changes

  • Remove "type": "module" — codebase is CJS throughout; this field was never correct and breaks module loading
  • Update engines.node to >=20.0.0 — aligns with the actual minimum required by locked dependencies (commander@14.0.3, ora@9.3.0)

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI mentioned this pull request Mar 1, 2026
10 tasks
…>=20

Co-authored-by: jaseel0 <225665919+jaseel0@users.noreply.github.com>
@jaseel0 jaseel0 requested a review from naheel0 March 1, 2026 16:09
Copilot AI changed the title [WIP] Fix package issues in the codebase Fix package.json: remove invalid "type": "module" and correct engines.node constraint Mar 1, 2026
@jaseel0 jaseel0 marked this pull request as ready for review March 1, 2026 16:09
@naheel0 naheel0 merged commit 8a6668e into package Mar 1, 2026
1 check passed
@naheel0 naheel0 deleted the copilot/sub-pr-28 branch March 1, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants