Skip to content

0.3.0

Compare
Choose a tag to compare
@dsifford dsifford released this 12 May 18:02

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