From 82c2bf3f6cf1d6394aeb78d4ccc0846a19c233d3 Mon Sep 17 00:00:00 2001 From: Sonishi Izuka Date: Sun, 12 Mar 2023 23:14:41 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=94=A7=20Update=20`.renovaterc.json`?= =?UTF-8?q?=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This update should have been done within https://github.com/sounisi5011/package-version-git-tag/pull/185 --- .renovaterc.json | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/.renovaterc.json b/.renovaterc.json index 7385c613..ff991e9d 100644 --- a/.renovaterc.json +++ b/.renovaterc.json @@ -1,7 +1,11 @@ { - "extends": ["config:js-lib"], + "extends": [ + "config:js-lib", + ":maintainLockFilesWeekly", + "helpers:disableTypesNodeMajor" + ], "commitMessagePrefix": "⬆️", - "ignoreDeps": ["@types/node"], + "ignorePresets": ["group:monorepos"], "packageRules": [ { "updateTypes": ["pin"], @@ -19,8 +23,7 @@ }, { "packageNames": [ - "husky", - "lint-staged", + "lefthook", "prettier", "prettier-package-json", "sort-package-json" @@ -31,9 +34,8 @@ { "packageNames": [ "ava", - "del", "escape-string-regexp", - "make-dir", + "execa", "node-git-server", "ts-node" ], @@ -52,6 +54,26 @@ ], "groupName": "dependencies: npm-scripts packages", "groupSlug": "npm-scripts-packages" + }, + { + "matchPackageNames": ["ava"], + "matchCurrentVersion": "<4.0.0", + "enabled": false + }, + { + "matchPackageNames": ["cac"], + "matchCurrentVersion": "<6.7.0", + "enabled": false + }, + { + "matchPackageNames": ["escape-string-regexp"], + "matchCurrentVersion": "<5.0.0", + "enabled": false + }, + { + "matchPackageNames": ["execa"], + "matchCurrentVersion": "<6.0.0", + "enabled": false } ] } From d98b9db9a935d630a5eb81f263206d3f363a597d Mon Sep 17 00:00:00 2001 From: Sonishi Izuka Date: Sun, 12 Mar 2023 23:30:45 +0900 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=94=A7=20Rewrite=20`.renovaterc.json`?= =?UTF-8?q?=20to=20JSON5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .renovaterc.json | 79 ----------------------------------------- .renovaterc.json5 | 90 +++++++++++++++++++++++++++++++++++++++++++++++ lefthook.yml | 2 +- 3 files changed, 91 insertions(+), 80 deletions(-) delete mode 100644 .renovaterc.json create mode 100644 .renovaterc.json5 diff --git a/.renovaterc.json b/.renovaterc.json deleted file mode 100644 index ff991e9d..00000000 --- a/.renovaterc.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "extends": [ - "config:js-lib", - ":maintainLockFilesWeekly", - "helpers:disableTypesNodeMajor" - ], - "commitMessagePrefix": "⬆️", - "ignorePresets": ["group:monorepos"], - "packageRules": [ - { - "updateTypes": ["pin"], - "commitMessagePrefix": "📌" - }, - { - "updateTypes": ["rollback"], - "commitMessagePrefix": "⬇️" - }, - { - "packageNames": ["eslint"], - "packagePatterns": ["^@typescript-eslint/", "^eslint-"], - "groupName": "dependencies: eslint packages", - "groupSlug": "eslint-packages" - }, - { - "packageNames": [ - "lefthook", - "prettier", - "prettier-package-json", - "sort-package-json" - ], - "groupName": "dependencies: code formatter packages", - "groupSlug": "code-formatter-packages" - }, - { - "packageNames": [ - "ava", - "escape-string-regexp", - "execa", - "node-git-server", - "ts-node" - ], - "groupName": "dependencies: test packages", - "groupSlug": "tester-packages" - }, - { - "packageNames": [ - "can-npm-publish", - "check-peer-deps", - "del-cli", - "git-branch-is", - "is-git-status-clean", - "npm-run-all", - "patch-package" - ], - "groupName": "dependencies: npm-scripts packages", - "groupSlug": "npm-scripts-packages" - }, - { - "matchPackageNames": ["ava"], - "matchCurrentVersion": "<4.0.0", - "enabled": false - }, - { - "matchPackageNames": ["cac"], - "matchCurrentVersion": "<6.7.0", - "enabled": false - }, - { - "matchPackageNames": ["escape-string-regexp"], - "matchCurrentVersion": "<5.0.0", - "enabled": false - }, - { - "matchPackageNames": ["execa"], - "matchCurrentVersion": "<6.0.0", - "enabled": false - } - ] -} diff --git a/.renovaterc.json5 b/.renovaterc.json5 new file mode 100644 index 00000000..8ad37119 --- /dev/null +++ b/.renovaterc.json5 @@ -0,0 +1,90 @@ +{ + extends: [ + "config:js-lib", + ":maintainLockFilesWeekly", + "helpers:disableTypesNodeMajor", + ], + commitMessagePrefix: "⬆️", + ignorePresets: ["group:monorepos"], + packageRules: [ + { + updateTypes: ["pin"], + commitMessagePrefix: "📌", + }, + { + updateTypes: ["rollback"], + commitMessagePrefix: "⬇️", + }, + { + packageNames: ["eslint"], + packagePatterns: ["^@typescript-eslint/", "^eslint-"], + groupName: "dependencies: eslint packages", + groupSlug: "eslint-packages", + }, + { + packageNames: [ + "lefthook", + "prettier", + "prettier-package-json", + "sort-package-json", + ], + groupName: "dependencies: code formatter packages", + groupSlug: "code-formatter-packages", + }, + { + packageNames: [ + "ava", + "escape-string-regexp", + "execa", + "node-git-server", + "ts-node", + ], + groupName: "dependencies: test packages", + groupSlug: "tester-packages", + }, + { + packageNames: [ + "can-npm-publish", + "check-peer-deps", + "del-cli", + "git-branch-is", + "is-git-status-clean", + "npm-run-all", + "patch-package", + ], + groupName: "dependencies: npm-scripts packages", + groupSlug: "npm-scripts-packages", + }, + // `ava@>=4.0.0` doesn't work with old Node.js. + // We should only update if the Node.js support range: `>=14.17` + { + matchPackageNames: ["ava"], + matchCurrentVersion: "<4.0.0", + enabled: false, + }, + // The format of help messages has changed since cac 6.7.0. + // see https://github.com/cacjs/cac/commit/e565b2ae5d4a3256ed4d56a64d91356e7d6cbce6 + // We should not update until we introduce breaking changes that modify the help messages. + { + matchPackageNames: ["cac"], + matchCurrentVersion: "<6.7.0", + enabled: false, + }, + // `escape-string-regexp@>=5.0.0` doesn't work with old Node.js. + // Because it uses pure ESM. + // We should only update if the Node.js support range: `>=14.13.0` + { + matchPackageNames: ["escape-string-regexp"], + matchCurrentVersion: "<5.0.0", + enabled: false, + }, + // `execa@>=6.0.0` doesn't work with old Node.js. + // Because it uses pure ESM and `node:` imports. + // We should only update if the Node.js support range: `>=14.13.1` + { + matchPackageNames: ["execa"], + matchCurrentVersion: "<6.0.0", + enabled: false, + }, + ], +} diff --git a/lefthook.yml b/lefthook.yml index 3ef370e4..aae0325c 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -44,7 +44,7 @@ _pre-commit__format__config: piped: true commands: format/config/0_prettier: - glob: "*.{json,yaml,yml}" + glob: "*.{json,json5,yaml,yml}" run: npx prettier --write {staged_files} format/config/1_format-package-json: # Note: If "package.json" is specified, only the root package.json file will be included. From 2262f818252f6e12256fadc4b6faf17715d226a3 Mon Sep 17 00:00:00 2001 From: Sonishi Izuka Date: Sun, 12 Mar 2023 23:33:56 +0900 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=93=9D=20Update=20CHANGELOG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa9555a1..c5e9d894 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -115,6 +115,7 @@ This project will support Node.js 14.0.0 or later from now on. * [#185] - Use npm v7 in this project * [#185] - Fix patch file to make `check-peer-deps@1.1.3` detect peerDependenciesMeta * [#188] - Run unit tests on the master branch +* [#193] - Update `.renovaterc.json` file [#182]: https://github.com/sounisi5011/package-version-git-tag/pull/182 [#183]: https://github.com/sounisi5011/package-version-git-tag/pull/183 @@ -122,6 +123,7 @@ This project will support Node.js 14.0.0 or later from now on. [#187]: https://github.com/sounisi5011/package-version-git-tag/pull/187 [#185]: https://github.com/sounisi5011/package-version-git-tag/pull/185 [#188]: https://github.com/sounisi5011/package-version-git-tag/pull/188 +[#193]: https://github.com/sounisi5011/package-version-git-tag/pull/193 ## [3.0.0] (2020-06-02 UTC) From 2698fe0ce6b95ff7e9287acf0d6aaa775bcc926e Mon Sep 17 00:00:00 2001 From: Sonishi Izuka Date: Sun, 12 Mar 2023 23:38:18 +0900 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=94=A7=20Disable=20major=20npm=20upda?= =?UTF-8?q?tes=20by=20Renovate=20bot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .renovaterc.json5 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.renovaterc.json5 b/.renovaterc.json5 index 8ad37119..3b158801 100644 --- a/.renovaterc.json5 +++ b/.renovaterc.json5 @@ -55,6 +55,11 @@ groupName: "dependencies: npm-scripts packages", groupSlug: "npm-scripts-packages", }, + { + matchPackageNames: ["npm"], + matchUpdateTypes: ["major"], + enabled: false, + }, // `ava@>=4.0.0` doesn't work with old Node.js. // We should only update if the Node.js support range: `>=14.17` {