Skip to content

Commit

Permalink
feat(semver): bump commitlint version to v18
Browse files Browse the repository at this point in the history
  • Loading branch information
edbzn committed Nov 19, 2023
1 parent 74a964b commit 5ae510e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/semver/src/generators/install/utils/dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { constants } from 'fs';
import type { SchemaOptions } from '../schema';

const PACKAGE_JSON = 'package.json';
const COMMITLINT_VERSION = '^18.0.0';
const HUSKY_VERSION = '^8.0.0';

export interface PackageJson {
scripts: PackageJsonPart<string>;
Expand Down Expand Up @@ -44,10 +46,10 @@ function _addDevDependencies(tree: Tree, options: SchemaOptions) {
tree,
{},
{
'@commitlint/cli': '^17.0.0',
'@commitlint/cli': COMMITLINT_VERSION,
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
[_getCommitlintConfig(options)!]: '^17.0.0',
husky: '^8.0.0',
[_getCommitlintConfig(options)!]: COMMITLINT_VERSION,
husky: HUSKY_VERSION,
},
);
}
Expand Down

0 comments on commit 5ae510e

Please sign in to comment.