Skip to content

Commit

Permalink
fix(semver): add json deps even with --skipInstall
Browse files Browse the repository at this point in the history
  • Loading branch information
edbzn committed Dec 16, 2023
1 parent c656a9c commit 21662e4
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions packages/semver/src/generators/install/utils/dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,16 @@ export function addDependencies(tree: Tree, options: SchemaOptions) {
}

function _addDevDependencies(tree: Tree, options: SchemaOptions) {
if (!options.skipInstall) {
addDependenciesToPackageJson(
tree,
{},
{
'@commitlint/cli': COMMITLINT_VERSION,
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
[_getCommitlintConfig(options)!]: COMMITLINT_VERSION,
husky: HUSKY_VERSION,
},
);
}
addDependenciesToPackageJson(
tree,
{},
{
'@commitlint/cli': COMMITLINT_VERSION,
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
[_getCommitlintConfig(options)!]: COMMITLINT_VERSION,
husky: HUSKY_VERSION,
},
);
}

function _addCommitlintConfig(tree: Tree, options: SchemaOptions) {
Expand Down

0 comments on commit 21662e4

Please sign in to comment.