Closed zohar-yzgiaev closed 4 years ago
Cool, thanks for the PR! I'll run some tests on it tomorrow.
@zoharyzgiaev Sorry it took me a long time to get back to this project.
I've refactored a bunch of stuff on the way, and fixed some issues:
package.json
bin
files for rrr
and runrunrun
didn't work (the value for bin
in package.json
is not a shell command, but a file path that will be require
ed)name
Thank you for the time you've put into this, it really helped me push things forward. This feature works great, it'll greatly improve my day to day work, and I know some people have been waiting for it as well! 😎🎉
This PR introduces the
r
option to rerun the last executed script including aliases for rerunning runrun. (runrunrun/rrr).@alexilyaev please note that https://github.com/sindresorhus/env-paths creates absolute paths which conflicts with the idea to create .data.json file for each
CWD
. With this solution every time runrun runs, the last executed script will be written to a cached file which will override previous data if it exists.