You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That seems a lot of trouble just to change the root, not to mention that it clutters up my repository and makes my build configuration more complicated. Would it be possible just to add a --root switch or something similar?
Yes, I know that theoretically each entry could be specified "root" independently, and for such cases, sure, you need a configuration file. But for such an overwhelmingly common use case (just zipping up a single directory), it seems like it would be a great benefit to allow a command line option that would simply assume that all indicated entities would have "root" set to true. (The same could be done for --flatten.)
The text was updated successfully, but these errors were encountered:
Thanks for making this. I'm using jszip-cli in an npm script, and it's working.
I tell jszip to zip up a
dist
directory, containing acss
subdirectory:Unfortunately the resulting archive contains the actual
dist
directory as well, that isdist/css
. I just want thecss
directory.It appears I'm forced to add a separate configuration file!
Then I have to do this:
That seems a lot of trouble just to change the root, not to mention that it clutters up my repository and makes my build configuration more complicated. Would it be possible just to add a
--root
switch or something similar?Yes, I know that theoretically each entry could be specified "root" independently, and for such cases, sure, you need a configuration file. But for such an overwhelmingly common use case (just zipping up a single directory), it seems like it would be a great benefit to allow a command line option that would simply assume that all indicated entities would have "root" set to
true
. (The same could be done for--flatten
.)The text was updated successfully, but these errors were encountered: