Skip to content

Commit

Permalink
fix(build): .husky/pre-commit hook was ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
pplmx committed Aug 28, 2024
1 parent b8864ec commit ad90a6e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
10 changes: 7 additions & 3 deletions biome.json
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -14,8 +14,12 @@
},
"linter": {
"enabled": true,
"rules": { "recommended": true },
"rules": {
"recommended": true
},
"ignore": ["**/*.test.ts"]
},
"organizeImports": { "enabled": true }
"organizeImports": {
"enabled": true
}
}
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "ES2019",
"target": "ES2023",
"module": "commonjs",
"outDir": "lib",
"esModuleInterop": true,
Expand Down

0 comments on commit ad90a6e

Please sign in to comment.