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

add an ensure-npm script #961

Merged
merged 3 commits into from
Jul 15, 2024
Merged

add an ensure-npm script #961

merged 3 commits into from
Jul 15, 2024

Conversation

newhouse
Copy link
Collaborator

No description provided.

@@ -56,7 +56,7 @@
"clean-build:vendor": "npm run clean:vendor && npm run build:vendor",
"clean-build": "npm run clean && npm run build",
"prepack": "husky install && npm run ensure-npm && npm run clean-build",
"ensure-npm": "read -p \"Are you running \\\"npm publish\\\" or did you pack using \\\"npm\\\"? That's \\\"npm\\\" instead of \\\"yarn\\\". Very important!!! [Yy]\" -n 1 -r; if [[ ! $REPLY =~ ^[Yy]$ ]]\nthen\n[[ \"$0\" = \"$BASH_SOURCE\" ]] && exit 1 || return 1\nfi",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This wasn't working anymore on mac...but node script should aways work

@newhouse newhouse enabled auto-merge (squash) July 15, 2024 16:02
@newhouse newhouse merged commit 2fd75d8 into main Jul 15, 2024
3 checks passed
@newhouse newhouse deleted the newhouse/ensure-npm-script branch July 15, 2024 18:35
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