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

Build on prepublishOnly #112

Merged
merged 3 commits into from
Jul 9, 2018
Merged

Build on prepublishOnly #112

merged 3 commits into from
Jul 9, 2018

Conversation

shawnbot
Copy link
Contributor

@shawnbot shawnbot commented Jul 9, 2018

Fixes #110 by running npm run build in the prepublishOnly script instead of preversion, which is run at release PR time instead of right before the final release publish.

@shawnbot shawnbot requested a review from a team July 9, 2018 18:29
@@ -8,7 +8,7 @@
"build": "NODE_ENV=production rollup -c",
"build:docs": "x0 build examples --out-dir docs",
"lint": "eslint src examples",
"preversion": "npm -s run build",
Copy link

Choose a reason for hiding this comment

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

What was the -s flag doing before?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was silencing output, which is probably a bad idea.

Copy link

@emplums emplums left a comment

Choose a reason for hiding this comment

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

Looks good! Were you able to test this at all before we merge + release? Also, do you want to run the docs build in this PR too or are you planning on doing it in a separate PR?

@shawnbot
Copy link
Contributor Author

shawnbot commented Jul 9, 2018

@emplums good call, I'll update the docs in this PR too. I haven't tested it, but I'm 90% confident that it'll work. 🤞

@shawnbot shawnbot merged commit 58ef474 into release-0.0.8-beta Jul 9, 2018
@shawnbot shawnbot deleted the npm-prepublish branch July 9, 2018 18:41
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