Releases: dsifford/yarn-completion
Releases · dsifford/yarn-completion
0.4.1
0.4.0
0.3.3
0.3.2
0.3.1
0.3.0
Minor Changes
- Allow : and . tokens in yarn run script completion (Example 1): 99ec65d
- Support scoped package completion for yarn why (Example 2): d73199f
- Add "yarn create" command added in yarn v0.24.x (still undocumented): e648490
Patches
- Remove duplicate call to _get_comp_words_by_ref: 1151654
- Chore: refactor arg counter into __yarn_count_args compat function: 0ef7233
Examples
Example 1
package.json
{
"scripts": {
"lint:javascript": "eslint .",
"lint:typescript": "tslint --project .",
"build.deps": "./build-deps.sh",
"build.src": "./build-src.sh"
}
}
$ yarn lint<tab>
Above will complete yarn lint:javascript
and yarn lint:typescript
$ yarn bu<tab>
Above will complete yarn build.deps
and yarn build.src
Example 2
// node_modules
node_modules/
└── @types
├── react
│ ├── index.d.ts
│ ├── LICENSE
│ ├── package.json
│ └── README.md
└── react-dom
├── index.d.ts
├── LICENSE
$ yarn why @ty<tab>
Above will complete yarn why @types/
$ yarn why @types/<tab>
Above will complete to yarn why @types/react
and yarn why @types/react-dom
0.2.1
0.2.0
0.1.2
Patch
- Replace
_count_args
and_filedir
backwards- and cross-compatible expressions. - Replace GNU
pgrep
and GNUhead
commands with BSD-compatible expressions. #3 - Add missing
versions
option foryarn info
command.
Note: These completions no longer depend on the bash-completion
library and should now be compatible on all BSD and GNU distros.
Chore
- Add
.editorconfig
.