From 8bda2ca9383121b08c482828d1cc05546901b336 Mon Sep 17 00:00:00 2001 From: fisker Date: Sat, 1 Mar 2025 02:23:28 +0800 Subject: [PATCH 1/2] chore: update `git-hooks-list` to v4 --- git-hooks-list_shim.cjs | 2 -- package-lock.json | 14 +++++++------- package.json | 4 ++-- 3 files changed, 9 insertions(+), 11 deletions(-) delete mode 100644 git-hooks-list_shim.cjs diff --git a/git-hooks-list_shim.cjs b/git-hooks-list_shim.cjs deleted file mode 100644 index 7a966d2..0000000 --- a/git-hooks-list_shim.cjs +++ /dev/null @@ -1,2 +0,0 @@ -const gitHooksList = require('git-hooks-list') -module.exports = gitHooksList diff --git a/package-lock.json b/package-lock.json index f78a414..6bc8269 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "detect-indent": "^7.0.1", "detect-newline": "^4.0.0", "get-stdin": "^9.0.0", - "git-hooks-list": "^3.0.0", + "git-hooks-list": "^4.0.0", "is-plain-obj": "^4.1.0", "semver": "^7.6.0", "sort-object-keys": "^1.1.3", @@ -6126,9 +6126,9 @@ } }, "node_modules/git-hooks-list": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/git-hooks-list/-/git-hooks-list-3.0.0.tgz", - "integrity": "sha512-XDfdemBGJIMAsHHOONHQxEH5dX2kCpE6MGZ1IsNvBuDPBZM3p4EAwAC7ygMjn/1/x+BJX0TK1ara1Zrh7JCFdQ==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/git-hooks-list/-/git-hooks-list-4.0.0.tgz", + "integrity": "sha512-B0QyeRIshkolHpnEmOmd69DGAAzOTF/OaviI/dpKP9CHuWCkHaQNa44+v5krT6l9y3HM4sZx4V2mSy8JQCOVsQ==", "funding": { "url": "https://github.com/fisker/git-hooks-list?sponsor=1" } @@ -19018,9 +19018,9 @@ } }, "git-hooks-list": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/git-hooks-list/-/git-hooks-list-3.0.0.tgz", - "integrity": "sha512-XDfdemBGJIMAsHHOONHQxEH5dX2kCpE6MGZ1IsNvBuDPBZM3p4EAwAC7ygMjn/1/x+BJX0TK1ara1Zrh7JCFdQ==" + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/git-hooks-list/-/git-hooks-list-4.0.0.tgz", + "integrity": "sha512-B0QyeRIshkolHpnEmOmd69DGAAzOTF/OaviI/dpKP9CHuWCkHaQNa44+v5krT6l9y3HM4sZx4V2mSy8JQCOVsQ==" }, "git-log-parser": { "version": "1.2.0", diff --git a/package.json b/package.json index 7b89ad3..d416cb0 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "reporter.js" ], "scripts": { - "build": "esbuild index.js --bundle --platform=node --alias:git-hooks-list=./git-hooks-list_shim.cjs --outfile=./cjs/index.js && ncp package.cjs.json ./cjs/package.json", + "build": "esbuild index.js --bundle --platform=node --outfile=./cjs/index.js && ncp package.cjs.json ./cjs/package.json", "fix": "eslint . --fix && prettier . \"!**/*.js\" --write && node cli.js \"package.json\"", "lint": "eslint . && prettier . \"!**/*.js\" --check && node cli.js \"package.json\" --check", "prepare": "husky install", @@ -84,7 +84,7 @@ "detect-indent": "^7.0.1", "detect-newline": "^4.0.0", "get-stdin": "^9.0.0", - "git-hooks-list": "^3.0.0", + "git-hooks-list": "^4.0.0", "is-plain-obj": "^4.1.0", "semver": "^7.6.0", "sort-object-keys": "^1.1.3", From ca27ec40a50f0e80595b1cbc0a9cf392a25f049a Mon Sep 17 00:00:00 2001 From: fisker Date: Tue, 4 Mar 2025 22:18:19 +0800 Subject: [PATCH 2/2] build: fix build script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f01faa3..739942d 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "index.cjs" ], "scripts": { - "build": "esbuild index.js --bundle --platform=node --outfile=./cjs/index.js", + "build": "esbuild index.js --bundle --platform=node --outfile=index.cjs", "fix": "eslint . --fix && prettier . --write && node cli.js \"package.json\"", "lint": "eslint . && prettier . \"!**/*.js\" --check && node cli.js \"package.json\" --check", "prepare": "husky install",