Skip to content

Commit 762111b

Browse files
fix(husky): keep pre-commit for lint/format/typecheck and move audit to manual command
1 parent 7b31147 commit 762111b

3 files changed

Lines changed: 3 additions & 20 deletions

File tree

.lintstagedrc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@
99
],
1010
"*.{json,md,yml,yaml}": ["prettier --write"],
1111
"src/**/*.{ts,tsx}": ["tsc --noEmit"],
12-
"tests/**/*.{ts,tsx}": ["tsc --noEmit"],
13-
"package.json": ["sh ./scripts/run-security-audit.sh"]
12+
"tests/**/*.{ts,tsx}": ["tsc --noEmit"]
1413
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"clean": "rimraf dist coverage",
4444
"install:clean": "rm -rf node_modules yarn.lock && yarn install",
4545
"typecheck": "tsc --noEmit",
46+
"security:audit": "yarn audit --level moderate",
4647
"prepare": "husky install || true",
4748
"build:executors": "./scripts/build-executors.sh",
4849
"fix:docker": "./scripts/fix-docker-permissions.sh",
@@ -139,4 +140,4 @@
139140
"ts-node-dev": "^2.0.0",
140141
"typescript": "^5.8.3"
141142
}
142-
}
143+
}

scripts/run-security-audit.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)