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
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polymarket/order-utils",
"version": "3.0.0",
"version": "3.0.1",
"description": "Typescript utility for creating orders for Polymarket's CLOB",
"author": "Liam Kovatch <liam@polymarket.com>",
"homepage": "https://github.com/Polymarket/clob-order-utils",
Expand Down Expand Up @@ -39,7 +39,8 @@
"build": "make build",
"test": "make test",
"lint": "make lint",
"postbuild": "cp package.json dist && cp README.md dist"
"postbuild": "cp package.json dist && cp README.md dist",
"prepublishOnly": "make build"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bug: prepublishOnly skips postbuild, missing files in dist

The new prepublishOnly script runs make build directly, which only executes tsc according to the Makefile. This bypasses npm's lifecycle hooks, so the postbuild script that copies package.json and README.md to the dist folder won't run. The published package will be missing these files. The script could run npm run build instead to trigger the full build chain including postbuild.

Fix in Cursor Fix in Web

},
"dependencies": {
"@ethersproject/providers": "^5.7.2",
Expand Down Expand Up @@ -76,4 +77,4 @@
"bugs": {
"url": "https://github.com/Polymarket/clob-order-utils/issues"
}
}
}