Skip to content

Commit

Permalink
v1.6.0 - added --use-yarn option
Browse files Browse the repository at this point in the history
  • Loading branch information
ammmze committed Oct 13, 2020
1 parent b5adbb4 commit 07c592b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Synchronizes the pom version to the package.json. Useful for applications that r
| `--prerelease-suffix` | Suffix string to apply to the version if it is a prerelease version. If the pom version is a release version, this value is ignored. This can be useful if you want your maven build to append a build number or timestamp to the version, so each build would push up a unique version for `SNAPSHOT` versions. So if I added `--prerelease-suffix '.0'` and the pom version is something like `1.0.0-SNAPSHOT`, the resulting version would be `1.0.0-SNAPSHOT.0`. But if the pom version was `1.0.0`, the resulting version would still be `1.0.0`. |
| `--pom-file` | Location of the `pom.xml` file. Defaults to use `./pom.xml` |
| `--package-file` | Location of the `package.json` file. Defaults to use `./package.json` |
| `--use-yarn` | Use yarn to update version instead of npm |

> Adding options in the `frontend-maven-plugin` can be done by setting the `arguments` like this:
> `<arguments>sync-pom-version -- --prerelease-version=.0</arguments>`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sync-pom-version-to-package",
"version": "1.5.0",
"version": "1.6.0",
"description": "Sync's the maven project version to the package.json",
"main": "index.js",
"author": "Branden Cash",
Expand Down

0 comments on commit 07c592b

Please sign in to comment.