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

"EISDIR: illegal operation on a directory, read" while publishing to a dist #221

Closed
elpdrc opened this issue Jan 31, 2018 · 1 comment
Closed

Comments

@elpdrc
Copy link

elpdrc commented Jan 31, 2018

Case:

  • My build phase uses ng-packagr to create from an angular project a 'dist' folder containing not only files but sub folders.
  • When running release-it with dist option, I get this error.
ERROR Cannot copy from `/home/circleci/repo/dist/bundles` to `/home/circleci/repo/.stage/bundles`: Cannot read from `/home/circleci/repo/dist/bundles`: EISDIR: illegal operation on a directory, read

I think this is coming from the usage of the cpy package to copy files from dist to stage.
https://github.com/webpro/release-it/blob/master/lib/shell.js#L96

The cpy package does not support copying directories.
sindresorhus/cpy#40

@webpro webpro closed this as completed in 04b6103 Feb 2, 2018
@webpro
Copy link
Collaborator

webpro commented Feb 2, 2018

Thanks @elpdrc, good catch. I've fixed this in v6.2.0. Directories should no longer throw, and those containing targeted files should be copied.

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

No branches or pull requests

2 participants