spoko-design-system 1.5.0 → 1.5.1

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.
@@ -0,0 +1,41 @@
1
+ # Git Hooks with Husky
2
+
3
+ This directory contains Git hooks managed by [Husky](https://typicode.github.io/husky/).
4
+
5
+ ## Pre-commit Hook
6
+
7
+ The pre-commit hook automatically runs before each commit to ensure code quality:
8
+
9
+ 1. **Builds the project** (`pnpm run build`)
10
+ - Catches MDX syntax errors
11
+ - Validates Vue components
12
+ - Ensures all documentation examples work
13
+
14
+ If the build fails, the commit will be blocked until errors are fixed.
15
+
16
+ ## Setup for Team Members
17
+
18
+ Hooks are automatically installed when running:
19
+
20
+ ```bash
21
+ pnpm install
22
+ ```
23
+
24
+ The `prepare` script in `package.json` handles this automatically.
25
+
26
+ ## Benefits
27
+
28
+ ✅ Prevents broken builds from being committed
29
+ ✅ Catches errors early in development
30
+ ✅ Maintains code quality across the team
31
+ ✅ Reduces failed CI/CD builds
32
+
33
+ ## Bypassing Hooks (Emergency Only)
34
+
35
+ If you absolutely need to bypass the pre-commit hook:
36
+
37
+ ```bash
38
+ git commit --no-verify -m "your message"
39
+ ```
40
+
41
+ **Note:** Only use this in emergencies. Your commit may break the build.
@@ -0,0 +1,12 @@
1
+ echo "🔍 Running pre-commit checks..."
2
+
3
+ # Run Astro build to catch MDX and component errors
4
+ echo "🏗️ Building project..."
5
+ pnpm run build
6
+
7
+ if [ $? -eq 0 ]; then
8
+ echo "✅ Build successful! Proceeding with commit..."
9
+ else
10
+ echo "❌ Build failed! Please fix errors before committing."
11
+ exit 1
12
+ fi
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [1.5.1](https://github.com/polo-blue/sds/compare/v1.5.0...v1.5.1) (2025-10-27)
2
+
3
+ ### Bug Fixes
4
+
5
+ * remove deprecated Husky shebang for v10 compatibility ([c7addfb](https://github.com/polo-blue/sds/commit/c7addfb1834eb480ead83b3d275977b47683a94a))
6
+
1
7
  ## [1.5.0](https://github.com/polo-blue/sds/compare/v1.4.4...v1.5.0) (2025-10-27)
2
8
 
3
9
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoko-design-system",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "private": false,
5
5
  "main": "./index.ts",
6
6
  "module": "./index.ts",
@@ -26,7 +26,8 @@
26
26
  "format:check": "prettier --check \"src/**/*.{js,ts,jsx,tsx,vue,astro,json,css,md}\"",
27
27
  "lint": "eslint \"src/**/*.{js,ts,jsx,tsx,vue,astro}\"",
28
28
  "lint:fix": "eslint \"src/**/*.{js,ts,jsx,tsx,vue,astro}\" --fix",
29
- "check": "astro check"
29
+ "check": "astro check",
30
+ "prepare": "husky"
30
31
  },
31
32
  "repository": {
32
33
  "type": "git",
@@ -126,6 +127,7 @@
126
127
  "eslint": "^9.38.0",
127
128
  "eslint-plugin-astro": "^1.4.0",
128
129
  "eslint-plugin-vue": "^10.5.1",
130
+ "husky": "^9.1.7",
129
131
  "prettier": "^3.6.2",
130
132
  "prettier-plugin-astro": "^0.14.1",
131
133
  "semantic-release": "^25.0.1",