Closed zeke closed 9 years ago
To do this on OSX you'd do something like:
[[ config.json.template -nt config.json ]] && cp config.json.template config.json
Would that work nicely on linux too?
Yup, that's just the old school Unix way, instead of this new fangled GNU way with all its fancy options and arguments.
@iarna I tried putting the bash conditional in package.json, npm didn't seem to like it.
So I found a better option -n for cp which might work on OSX. I don't have OSX, so let me know if this works.
@zeke I added a branch osx-cp, can you fetch it and see if that fixes your issue? Thanks for finding this problem.
A PR in progress: https://github.com/djblue/pnpm/pull/3
Hi @djblue this looks like an interesting project. I work at npm and used to work at Heroku, so I'm intrigued. :)
cp -u
is not a thing on OS X, so I got an error onnpm install
. I would send a pull request, but I'm not sure if there's an OS X equivalent for the-u
flag behavior.