Describe the bug
To Reproduce
Steps to reproduce the behavior:
- Define a package with a target and no
inputs and outputs specified, and package needs to have some files under src/ folder and top level like jest.config.js
- Run the task once (so it's cached)
- Make a change to a top-level file
- Re-run the same task (it should be skipped)
- You will see that changes you made to the top level file are reverted after the cached/skipped task run. Observe that this isn't valid for files that starts with
. like .eslintrc.js
Expected behavior
Cached task runs should not revert any changes by default. Although it can be worked around using inputs and outputs, it's a strange default behaviour.
Environment/Troubleshooting