From eb0a387bb42c9d000fb42104522fd8c9e5474d2d Mon Sep 17 00:00:00 2001 From: Shai Reznik Date: Wed, 1 Mar 2023 19:00:30 +0200 Subject: [PATCH] chore: upgraded versions --- .husky/commit-msg | 4 ++++ .husky/pre-commit | 4 ++++ .nvmrc | 1 + CONTRIBUTING.md | 4 ++-- package.json | 13 +++++++------ packages/auto-spies-core/package.json | 8 ++++---- packages/jasmine-auto-spies/README.md | 2 +- packages/jasmine-auto-spies/package.json | 2 +- packages/jest-auto-spies/README.md | 7 +++---- packages/jest-auto-spies/package.json | 2 +- 10 files changed, 28 insertions(+), 19 deletions(-) create mode 100644 .husky/commit-msg create mode 100644 .husky/pre-commit create mode 100644 .nvmrc diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100644 index 0000000..e8511ea --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx --no-install commitlint --edit $1 diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..95529d7 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +pnpm run format:fix diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..5dbac1e --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v16.13.0 \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 989b928..ba8cf81 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -54,7 +54,7 @@ git checkout -b my-fix-branch master ### ✅ 4. Make sure you add / modify tests -Run `yarn test:full` to make sure there aren't any errors +Run `pnpm test:full` to make sure there aren't any errors . @@ -63,7 +63,7 @@ Run `yarn test:full` to make sure there aren't any errors Instead of `git commit` use the following command: ```shell -yarn commit +pnpm commit ``` It will then ask you a bunch of questions. diff --git a/package.json b/package.json index 37024b2..3b3a793 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ "lint:commitmsg": "commitlint -E HUSKY_GIT_PARAMS", "test": "lerna run test", "test:full": "run-s lint:fix test", - "postinstall": "lerna bootstrap" + "postinstall": "lerna bootstrap", + "prepare": "husky install" }, "workspaces": [ "packages/*" @@ -32,8 +33,8 @@ }, "husky": { "hooks": { - "pre-commit": "yarn format:fix", - "commit-msg": "yarn lint:commitmsg" + "pre-commit": "pnpm format:fix", + "commit-msg": "pnpm lint:commitmsg" } }, "keywords": [ @@ -56,12 +57,12 @@ "@typescript-eslint/parser": "^5.8.1", "all-contributors-cli": "6.19.0", "awesome-typescript-loader": "^5.2.1", - "commitizen": "4.2.0", - "cz-conventional-changelog": "3.2.1", + "commitizen": "4.3.0", + "cz-conventional-changelog": "3.3.0", "doctoc": "1.4.0", "eslint": "^8.5.0", "eslint-config-prettier": "^8.3.0", - "husky": "4.2.5", + "husky": "8.0.3", "istanbul-instrumenter-loader": "3.0.1", "karma": "^6.3.9", "karma-chrome-launcher": "3.1.0", diff --git a/packages/auto-spies-core/package.json b/packages/auto-spies-core/package.json index 12f68aa..5b81faa 100644 --- a/packages/auto-spies-core/package.json +++ b/packages/auto-spies-core/package.json @@ -37,14 +37,14 @@ "devDependencies": { "@hirez_io/jest-given": "1.0.3", "@types/deep-equal": "1.0.1", - "@types/jest": "27.4.0", - "@types/node": "17.0.5", - "jest": "27.4.5", + "@types/jest": "29.4.0", + "@types/node": "18.14.2", + "jest": "29.4.3", "npm-run-all": "4.1.5", "prettier": "2.5.1", "rimraf": "3.0.2", "rxjs": "^7.5.1", - "ts-jest": "27.1.2", + "ts-jest": "29.0.5", "ts-node": "^10.4.0", "typescript": "^4.5.4" }, diff --git a/packages/jasmine-auto-spies/README.md b/packages/jasmine-auto-spies/README.md index fc9f506..0d6423f 100644 --- a/packages/jasmine-auto-spies/README.md +++ b/packages/jasmine-auto-spies/README.md @@ -83,7 +83,7 @@ Easy and type safe way to write spies for jasmine tests, for both sync and async ## Installation ```console -yarn add -D jasmine-auto-spies +pnpm add -D jasmine-auto-spies ``` or diff --git a/packages/jasmine-auto-spies/package.json b/packages/jasmine-auto-spies/package.json index 4b76336..f445942 100644 --- a/packages/jasmine-auto-spies/package.json +++ b/packages/jasmine-auto-spies/package.json @@ -35,7 +35,7 @@ }, "devDependencies": { "@types/jasmine": "^3.10.2", - "@types/node": "17.0.5", + "@types/node": "18.14.2", "jasmine-core": "4.0.1", "rimraf": "3.0.2", "rxjs": "^7.5.1", diff --git a/packages/jest-auto-spies/README.md b/packages/jest-auto-spies/README.md index 0283d05..cb2219a 100644 --- a/packages/jest-auto-spies/README.md +++ b/packages/jest-auto-spies/README.md @@ -63,7 +63,7 @@ Easy and type safe way to write spies for jest tests, for both sync and async (p ## Installation ```console -yarn add -D jest-auto-spies +pnpm add -D jest-auto-spies ``` or @@ -608,9 +608,8 @@ function getResultsObservable(): Observable { // TEST: it('should ...', () => { - const functionSpy = createFunctionSpy( - 'getResultsObservable' - ); + const functionSpy = + createFunctionSpy('getResultsObservable'); functionSpy.nextWith(4); diff --git a/packages/jest-auto-spies/package.json b/packages/jest-auto-spies/package.json index 4c93f9a..6acf992 100644 --- a/packages/jest-auto-spies/package.json +++ b/packages/jest-auto-spies/package.json @@ -34,7 +34,7 @@ }, "devDependencies": { "@types/jest": "29.4.0", - "@types/node": "17.0.5", + "@types/node": "18.14.2", "jest": "29.4.3", "rxjs": "^7.5.1", "ts-jest": "29.0.5",