calvinmetcalf / copyfiles

copy files on the command line
MIT License
411 stars 52 forks source link

`copyup` not applying `--up 1` #127

Open PaulRBerg opened 1 year ago

PaulRBerg commented 1 year ago

The README says this:

also creates a copyup command which is identical to copyfiles but -up defaults to 1

I tried using copyup and the --up 1 flag does not seem to work, i.e. my src is copied over to dist. I've run it multiple times (both as a CLI and as an npm script), and I made sure that there's nothing getting in the way.

copyfiles --up 1 works, though.

I'm using version 2.4.1

yegorius commented 1 year ago

Having this issue on Windows as well. I think that the Linux trick with symlinking doesn't work on Windows: args.argv.$0 is node_modules\\copyfiles\\copyfiles when executed as copyup.

BobDu commented 5 months ago

Same bug when use pnpm in macOS