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

[BUG] Prepublish doesn't work before npm publish #7653

Closed
2 tasks done
ufukbakan opened this issue Jul 16, 2024 · 1 comment
Closed
2 tasks done

[BUG] Prepublish doesn't work before npm publish #7653

ufukbakan opened this issue Jul 16, 2024 · 1 comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps

Comments

@ufukbakan
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

I have
"prepublish": "npm run build"
script inside my package.json file but when I run the 'npm publish' it doesn't run the build command.
npm -v
10.7.0
macOS Sonoma 14.3

Expected Behavior

No response

Steps To Reproduce

No response

Environment

No response

@ufukbakan ufukbakan added Bug thing that needs fixing Needs Triage needs review for next steps labels Jul 16, 2024
@ufukbakan
Copy link
Author

resolved it by changing prepublish to prepublishOnly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps
Projects
None yet
Development

No branches or pull requests

1 participant