Skip to content

Commit

Permalink
fix: skip preinstall for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
maxam2017 committed Feb 16, 2024
1 parent 5ad9ae6 commit d7f49da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"type": "module",
"scripts": {
"preinstall": "pre-commit install",
"preinstall": "./preinstall.sh",
"dev": "ts-node-esm src/index.ts",
"build": "tsc && ncc build dist/index.js --minify && find dist/ -type f -not -name 'index.js' -delete",
"lint": "biome lint"
Expand Down
9 changes: 9 additions & 0 deletions preinstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# Check if CI variable is set to true
if [ "$CI" = "true" ]; then
echo "CI is true, skipping pre-commit install."
else
# Install pre-commit hooks
pre-commit install
fi

0 comments on commit d7f49da

Please sign in to comment.