-
Notifications
You must be signed in to change notification settings - Fork 524
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
Use publishr
to move all build dependencies to devDependencies
#186
Comments
We ideally would make this more nuanced as |
Word of warning, if you try (another note, I don't think |
Thanks @exogen, postinstall-build is promising.
You're right, @ryan-roemer. Perhaps we could modify |
Here's a smaller change for just swapping the two packages we care about:
Here's a POC for a victory component: FormidableLabs/victory-label#39 with a corresponding script / tasks in the archetype: https://github.com/FormidableLabs/builder-victory-component/compare/feature-npm-package-swapping |
We now have https://github.com/FormidableLabs/publishr for this and should move along with that if we want to advance this ticket. |
devDependencies
publishr
to move all build dependencies to devDependencies
closed by #415 |
Current task
publishr
workflow in thebuilder-victory-component
archetype.dist
norlib
are in git source.dist
andlib
only forgit
installsdist
andlib
and ensure thatbuilder
andbuilder-victory-component
aredevDependencies
in "fromnpm
" version.Original Issue
npm install victory
ends up installingwebpack
,builder
babel-*
etc.These dependencies are required to support building
lib/
in thepostinstall
phase when depending on Victory via a git or github URL.If we change the
postinstall
script fromcd lib || builder run npm:postinstall
tocd lib || (npm i --development && builder run npm:postinstall)
, we may be able to move all these dependencies todevDependencies
, to avoid punishing the majority of users who install fromnpm
(wherelib/
is already built).The text was updated successfully, but these errors were encountered: