Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdks/js/apps/spark-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Spark CLI",
"type": "module",
"bin": {
"spark-cli": "./dist/cli.js"
"spark-cli": "./dist/cli.mjs"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bin entry points to non-existent output file

High Severity

The bin entry now references ./dist/cli.mjs, but tsdown with format: ["esm"] produces ./dist/cli.js when "type": "module" is set in package.json. The .mjs extension is only used when "type": "module" is absent. Since the package keeps "type": "module", the built output will still be cli.js, and the bin link will point to a non-existent file — the CLI remains broken with the same spark-cli: command not found error this PR aims to fix.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 9e44ac5. Configure here.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, the file actually included in the package is dist/cli.mjs.
https://app.unpkg.com/@buildonspark/cli@0.0.121/files/dist/cli.mjs

},
"files": [
"dist",
Expand Down