From ad90a6e28a2ac4968ca77aa566d6ddf920b1a608 Mon Sep 17 00:00:00 2001 From: Mystic <215104920@qq.com> Date: Wed, 28 Aug 2024 11:07:05 +0800 Subject: [PATCH] fix(build): .husky/pre-commit hook was ignored --- biome.json | 10 +++++++--- package.json | 15 ++++++++++++--- tsconfig.json | 2 +- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/biome.json b/biome.json index 74369d2..4c803ab 100644 --- a/biome.json +++ b/biome.json @@ -1,7 +1,7 @@ { "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", "files": { - "ignore": ["**/dist/index.js", "**/lib/index.js", "**/coverage/*"] + "ignore": ["**/node_modules/**", "**/dist/**", "**/build/**", "**/coverage/**", "lib"] }, "formatter": { "enabled": true, @@ -14,8 +14,12 @@ }, "linter": { "enabled": true, - "rules": { "recommended": true }, + "rules": { + "recommended": true + }, "ignore": ["**/*.test.ts"] }, - "organizeImports": { "enabled": true } + "organizeImports": { + "enabled": true + } } diff --git a/package.json b/package.json index 0b7b165..298cb50 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,25 @@ { + "name": "setup-me-action", + "version": "0.1.0", + "description": "A custom GitHub Action using typescript", + "author": "Mystic", + "repository": { + "type": "git", + "url": "git+https://github.com/pplmx/setup-me-action" + }, + "license": "MIT", "scripts": { "build": "tsc && ncc build lib/index.js", "test": "jest", "lint": "biome check --write --no-errors-on-unmatched --files-ignore-unknown=true", - "prepare": "husky install" + "prepare": "husky install | chmod ug+x .husky/*" }, "dependencies": { "@actions/core": "^1.10.1", - "@actions/github": "^6.0.0", - "@vercel/ncc": "^0.38.1" + "@actions/github": "^6.0.0" }, "devDependencies": { + "@vercel/ncc": "^0.38.1", "@biomejs/biome": "1.8.3", "@types/jest": "^29.5.12", "husky": "^8.0.0", diff --git a/tsconfig.json b/tsconfig.json index 89d21b9..2053d02 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "ES2019", + "target": "ES2023", "module": "commonjs", "outDir": "lib", "esModuleInterop": true,