jprichardson / cross-zip-cli

Zip/Unzip directories cross platform from the CLI. Great for npm scripts.
MIT License
26 stars 6 forks source link

zip file empty if created inside source directory #5

Open garretwilson opened 6 years ago

garretwilson commented 6 years ago

I have a dist/ directory containing files in dist/css/. If I run the command:

cross-zip dist dist/foobar.zip

The resulting file is empty. It only works if I place the resulting zip file somewhere else, e.g.

cross-zip dist target/foobar.zip