Skip to content

Commit

Permalink
feat: add preinstall script to enforce pnpm usage and specify node ve…
Browse files Browse the repository at this point in the history
…rsion requirements
  • Loading branch information
omeralpi committed Nov 20, 2024
1 parent 056618c commit ae4a5d2
Show file tree
Hide file tree
Showing 3 changed files with 4,942 additions and 4,019 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 8.7.4
version: 9.0.0

- name: Get pnpm store directory
id: pnpm-cache
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"lint:fix": "next lint --fix",
"typecheck": "tsc --noEmit",
"format": "prettier --write .",
"prepare": "husky"
"prepare": "husky",
"preinstall": "npx only-allow pnpm"
},
"dependencies": {
"@hookform/resolvers": "^3.3.4",
Expand Down Expand Up @@ -80,5 +81,9 @@
"*.+(js|jsx|ts|tsx|json|css|md|mdx)": [
"prettier --write"
]
},
"engines": {
"node": ">=18.0.0",
"pnpm": ">=9"
}
}
Loading

0 comments on commit ae4a5d2

Please sign in to comment.