Skip to content

Releases: dsifford/yarn-completion

0.4.1

11 Aug 22:17
Compare
Choose a tag to compare

Note: Official zsh completions are now available. If you're a zsh user, please use those.

Patches

  • Instruct zsh users to use the official zsh completions in the readme: acc693e

0.4.0

27 Jun 16:14
Compare
Choose a tag to compare

Minor Changes

  • Add completion for yarn run env command added in v0.27.0: 452509b
  • Add completion for yarn upgrade --latest added in v0.27.0: 11756de

Patches

  • Fix yarn global remove to complete more than one package name: e27d3bd

Notes

This release brings the completions up to date to yarn v0.27.1

0.3.3

22 May 23:45
Compare
Choose a tag to compare

Patches

  • Fix broken yarn why completion on BSD systems. closes #7: 40afe6a

0.3.2

16 May 16:18
Compare
Choose a tag to compare

Patches

  • Fix: only list actual package names, not aliases, when completing globals: b472374
  • Fix: remove unnecessary redundancy: ed46cc8

0.3.1

15 May 15:35
Compare
Choose a tag to compare

Patches

  • Add osx with brew doc: 1b03972
  • Add back _get_comp_words_by_ref for bash 3 compatibility: c507ab8

Credits

Huge thanks to @bySabi and @JonathanUsername for their help!

0.3.0

12 May 18:02
Compare
Choose a tag to compare

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

04 May 20:00
Compare
Choose a tag to compare

Patches

  • Fix broken zsh completions (currently only partially supported). closes #4: 108a935

0.2.0

26 Apr 23:45
Compare
Choose a tag to compare

Minor

If scripts are found in a package.json file in the current directory, add them as first-level autocompletion commands.

Example:

package.json

{
    "scripts": {
	"foo": "echo bar"
    }
}

yarn f<tab> will complete to yarn foo

0.1.2

20 Apr 02:37
Compare
Choose a tag to compare

Patch

  • Replace _count_args and _filedir backwards- and cross-compatible expressions.
  • Replace GNU pgrep and GNU head commands with BSD-compatible expressions. #3
  • Add missing versions option for yarn 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.