Closed kachkaev closed 6 years ago
I noticed that moving to a sub-directory breaks project-specific autocompletion such as for scripts.
project/package.json
{ "scripts": { "do-something": "echo 'hello'" } }
cd project yarn do-s # tab 🎉 yarn do-something
cd project/docs yarn do-s # tab ❌
It'd be great if yarn-completion searched for the nearest parent package.json if it is not found in cwd.
yarn-completion
package.json
cwd
This seems reasonable. I'll look into it when I get time.
PRs also accepted.
I noticed that moving to a sub-directory breaks project-specific autocompletion such as for scripts.
project/package.json
It'd be great if
yarn-completion
searched for the nearest parentpackage.json
if it is not found incwd
.