Skip to content

Commit

Permalink
👷 build(settings): use pnpm instead of npm
Browse files Browse the repository at this point in the history
  • Loading branch information
thathurtabit committed Jan 13, 2024
1 parent 8824774 commit cfadfa6
Show file tree
Hide file tree
Showing 8 changed files with 14,779 additions and 24,937 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm run test:ci && pnpm run lint:fix
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"MAILERSEND",
"Omni",
"postbuild",
"preinstall",
"Randomised",
"superjson",
"TRPC",
Expand Down
10 changes: 5 additions & 5 deletions commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ trap 'echo "\n⚠️ ${RED} Uh oh. Failed to complete: \"${last_command}\". Run

echo "\n"
echo "${GREEN}Installing latest packages${NC}"
npm install
pnpm i
echo "\n"
echo "${GREEN}Running lint --fix${NC}"
npm run lint:fix
pnpm run lint:fix
echo "\n"
echo "${GREEN}Running unit tests${NC}"
npm run test:ci
pnpm run test:ci
echo "\n"
echo "${GREEN}Running build${NC}"
npm run build
pnpm run build
echo "\n"
echo "${GREEN}Running commitizen${NC}"
echo "(Make sure you've staged your file changes)"
npm run cz --no-verify
pnpm run cz --no-verify
echo "\n"

echo "⚙️ ${GREEN}Tasks completed:\n${NC}"
Expand Down
Loading

0 comments on commit cfadfa6

Please sign in to comment.