Skip to content

Commit

Permalink
fix(semver): migrate husky to v9 in npm prepare script
Browse files Browse the repository at this point in the history
  • Loading branch information
tuffz committed Feb 5, 2024
1 parent 3f28ef9 commit 0dc731b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/semver/src/generators/install/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ describe('@jscutlery/semver:install', () => {
const packageJson = readJson(tree, 'package.json');

expect(tree.exists('.husky/commit-msg')).toEqual(true);
expect(packageJson.scripts.prepare).toEqual('husky install');
expect(packageJson.scripts.prepare).toEqual('husky');
});

it('does not add husky config if exists', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function _addHuskyConfig(tree: Tree) {
if (!hasHusky) {
packageJson.scripts = {
...packageJson.scripts,
...{ prepare: 'husky install' },
...{ prepare: 'husky' },
};
}

Expand Down

0 comments on commit 0dc731b

Please sign in to comment.