Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erase the postinstall script before publishing a new version #58

Closed
novusnota opened this issue Mar 7, 2025 · 2 comments · Fixed by #60
Closed

Erase the postinstall script before publishing a new version #58

novusnota opened this issue Mar 7, 2025 · 2 comments · Fixed by #60

Comments

@novusnota
Copy link
Member

novusnota commented Mar 7, 2025

This is needed to circumvent the same npm issues Tact compiler had prior to releasing the version 1.6.2.

Here's what you need:

  1. Make sure everything's committed
  2. Remove the postinstall lifecycle script (temporarily): jq 'del(.scripts.postinstall)' package.json -M > temp.json && mv temp.json package.json
  3. Do the regular pre-release steps, then do npm publish (or somesuch)
  4. Finally, revert changes to the package.json: git checkout -- package.json
@novusnota
Copy link
Member Author

Or just remove the script from package.json altogether, similar to how tact-lang/tact did it.

@anton-trunov
Copy link
Member

It's already been done on npmjs, we just need to update the codebase to reflect it, see #59

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 a pull request may close this issue.

2 participants