Skip to content

Commit

Permalink
chore: add Husky pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
brenoepics committed May 9, 2024
1 parent d87ab72 commit ec1cb43
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm preflight
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"package:watch": "pnpm run package --watch",
"test": "pnpm jest --coverage --verbose",
"prepublishOnly": "pnpm run clean && pnpm install && pnpm run build",
"preflight": "pnpm install && pnpm run format:write && pnpm run lint && pnpm run test && pnpm run package"
"preflight": "pnpm install && pnpm run format:write && pnpm run lint && pnpm run test && pnpm run package",
"prepare": "husky"
},
"keywords": [],
"author": "",
Expand Down Expand Up @@ -64,6 +65,7 @@
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"husky": "9.0.11",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"rimraf": "5.0.5",
Expand Down
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/utils/FileProcessor.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import fs from "fs";
import * as core from "@actions/core";

export function processFiles(params: FilesParams): void {
const { files, encodings, variables, fsModule = fs, extension } = params;
Expand Down

0 comments on commit ec1cb43

Please sign in to comment.