Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
indooorsman committed Mar 15, 2022
1 parent 50ab77b commit 0a8ef27
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class VersionPlusCommand extends VersionCommand {
async execute() {
if (this.strategy !== 'prerelease' && this.preid) {
this.context.stdout.write(
`\n--preid will be ignored as it only works with prerelease strategy\n`
`--preid will be ignored as it only works with prerelease strategy\n`
);
}

Expand Down
28 changes: 27 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
# yarn-plugins-cy

some usefull yarn 3.x custom plugins
some usefull yarn 3.x custom plugins

## yarn-plugin-version-tools

install:

```bash
yarn plugin import https://github.com/indooorsman/yarn-plugins/releases/download/v1.0.1/plugin-version-tools.js
```

### `yarn vt <stragegy>`

almost same with [@yarnpkg/plugin-version](https://yarnpkg.com/cli/version), but add a `--preid` option for bump `prerelease` version, e.g.:

```bash
yarn vt prerelease --preid beta
#=> 1.2.2 ==> 1.2.3-beta.1
```

### `yarn vt changed --base <branch name or commit hash>`

show changed packages

```bash
yarn vt changed --base main
#=> yarn-plugin-version-tools,yarn-plugin-version-fork
```

0 comments on commit 0a8ef27

Please sign in to comment.