-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Switch to the only prepublish script #903
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great change! See minor comment above.
scripts/prepublish.js
Outdated
const path = require('path'); | ||
const shell = require('shelljs'); | ||
const chalk = require('chalk'); | ||
const babel = ['node_modules', '.bin', 'babel'].join(path.sep); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use path.join
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure!
Thanks, @shilman! |
So if nobody objects I will merge this? |
@usulpro Are you working on getting this merged? |
Yes @ndelangen I'll resolve it |
use ./scripts/prepublish.js as a prepublish script for all packages
stories -> stories/ to ignore only folders added test.js
02f2a2e
to
4845e21
Compare
Issue: All packages use different versions of prepublish scripts. Plus some of them
shell
scripts which have bad compatibility with windowsWhat I did
Added the only instance of prepublish script to
./scripts/prepublish.js
it's the shell js version wich allready was used in
storybook-ui
Changed in
scripts
of eachpackage.json
to"prepublish": "node ../../scripts/prepublish.js"
Removed previos versions of prepublish scripts from packages
How to test
yarn
it should install all dependencies without any errors and buid
dist
's for all packages