Skip to content

Commit

Permalink
feat: ✅ use angular preset
Browse files Browse the repository at this point in the history
  • Loading branch information
edbzn committed Dec 5, 2020
1 parent b0f3c76 commit 67312bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ nx run my-package:version [...options]

1. Retrieve the current version of `package.json` file from `my-package` project.
2. Bump the version based on your commits.
3. Generates a changelog based on your commits (uses [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog) under the hood).
3. Generates a changelog based on your commits (uses [conventional-changelog-angular](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular) under the hood).
4. Creates a new `commit` including your package.json file and updated CHANGELOG.
5. Creates a new `tag` with the new version number.
6. Push the release if enabled.
Expand Down
1 change: 1 addition & 0 deletions packages/semver/src/builders/version/builder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ describe('@jscutlery/semver:version', () => {
expect(standardVersion).toBeCalledWith(
expect.objectContaining({
silent: false,
preset: expect.stringContaining('conventional-changelog-angular'),
dryRun: false,
noVerify: false,
firstRelease: false,
Expand Down
1 change: 1 addition & 0 deletions packages/semver/src/builders/version/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export function runBuilder(
infile: resolve(projectRoot, 'CHANGELOG.md'),
packageFiles: [resolve(projectRoot, 'package.json')],
bumpFiles: [resolve(projectRoot, 'package.json')],
preset: require.resolve('conventional-changelog-angular'),
})
),
options.push && options.dryRun === false
Expand Down

0 comments on commit 67312bf

Please sign in to comment.