Skip to content

Conversation

@mustafa-poly
Copy link

@mustafa-poly mustafa-poly commented Nov 29, 2025

Note

Bumps to 3.0.1 and adds a prepublish build step to the package scripts.

  • Release/Packaging:
    • Bump version to 3.0.1 in package.json.
    • Add prepublishOnly script to run make build before publishing.
    • Update scripts block formatting.

Written by Cursor Bugbot for commit 8b42e60. This will update automatically on new commits. Configure here.

@mustafa-poly mustafa-poly requested a review from a team as a code owner November 29, 2025 00:53
"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

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

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.

2 participants