create-croissant 0.1.18 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.1.18",
6
+ "version": "0.1.20",
7
7
  "description": "Scaffold a new project using the Croissant Stack",
8
8
  "repository": {
9
9
  "type": "git",
@@ -0,0 +1,11 @@
1
+ #!/bin/sh
2
+ . "$(dirname "$0")/_/husky.sh"
3
+
4
+ # Get the name of the branch being pushed
5
+ branch=$(git rev-parse --abbrev-ref HEAD)
6
+
7
+ # Only run if pushing to main
8
+ if [ "$branch" = "main" ]; then
9
+ echo "Pushing to main branch, running CI checks..."
10
+ npm run ci
11
+ fi
@@ -8,15 +8,18 @@
8
8
  "lint": "turbo lint",
9
9
  "format": "turbo format",
10
10
  "typecheck": "turbo typecheck",
11
+ "ci": "npm run lint && npm run typecheck && npm run build",
11
12
  "db:up": "docker compose up -d",
12
13
  "db:down": "docker compose down",
13
14
  "db:logs": "docker compose logs -f",
14
- "update-deps": "npx npm-check-updates -u -w --root && npm install"
15
+ "update-deps": "npx npm-check-updates -u -w --root && npm install",
16
+ "prepare": "husky"
15
17
  },
16
18
  "devDependencies": {
17
19
  "@better-auth/core": "^1.6.7",
18
20
  "@tanstack/eslint-config": "0.4.0",
19
21
  "eslint": "10.2.1",
22
+ "husky": "^9.1.7",
20
23
  "prettier": "^3.8.1",
21
24
  "prettier-plugin-tailwindcss": "^0.7.2",
22
25
  "turbo": "^2.8.17",