Skip to content
Merged
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: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
},
"scripts": {
"build": "rollup -c",
"prepare": "npm run build",
"prepublishOnly": "npm run build",
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

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

With prepare added, npm publish / npm pack will also run the build via prepare (npm lifecycle), so keeping prepublishOnly will typically run the build twice during publishing. Consider removing prepublishOnly (or prepare) to avoid redundant builds and potential non-deterministic artifact differences.

Suggested change
"prepublishOnly": "npm run build",

Copilot uses AI. Check for mistakes.
"pretest": "npm run build",
"test": "for file in $(find examples -name '*.js' -type f | sort); do echo 'Running' \"$file\"; if node \"$file\" > /dev/null 2>&1; then echo 'Success'; else echo 'Failed'; fi; done"
},
"repository": {
Expand Down