@kabran-tecnologia/kabran-config 2.1.1 → 2.2.0

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/README.md CHANGED
@@ -368,8 +368,9 @@ echo "npx lint-staged" > .husky/pre-commit
368
368
  # Add commit-msg hook
369
369
  echo "npx --no -- commitlint --edit \$1" > .husky/commit-msg
370
370
 
371
- # Add pre-push hook (optional)
372
- echo "npm run type-check && npm test" > .husky/pre-push
371
+ # Add pre-push hook (optional - kept lightweight by design)
372
+ # Full validation runs in CI. Uncomment type-check if desired:
373
+ # echo "npm run type-check" > .husky/pre-push
373
374
  ```
374
375
 
375
376
  ---
@@ -476,21 +477,14 @@ node node_modules/@kabran-tecnologia/kabran-config/src/scripts/license-check.mjs
476
477
  }
477
478
  ```
478
479
 
479
- **Usage in CI/CD:**
480
+ **Usage in CI (recommended):**
480
481
 
481
482
  ```yaml
482
- # .github/workflows/quality.yml
483
+ # .github/workflows/ci.yml
483
484
  - name: License Check
484
485
  run: npm run license:check
485
486
  ```
486
487
 
487
- **Usage in Husky:**
488
-
489
- ```bash
490
- # .husky/pre-push
491
- npm run license:check
492
- ```
493
-
494
488
  **Blocked licenses:** GPL, AGPL, LGPL, EUPL (viral copyleft)
495
489
  **Exit code:** 1 if prohibited licenses found, 0 otherwise
496
490
 
@@ -607,14 +601,7 @@ node node_modules/@kabran-tecnologia/kabran-config/src/scripts/env-validator.mjs
607
601
  3. If env vars detected, validates `.env.example` exists
608
602
  4. Warns if vars in `.env.example` lack comments/documentation
609
603
 
610
- **Usage in Husky:**
611
-
612
- ```bash
613
- # .husky/pre-push
614
- npm run env:validate
615
- ```
616
-
617
- **Usage in CI/CD:**
604
+ **Usage in CI (recommended):**
618
605
 
619
606
  ```yaml
620
607
  # .github/workflows/security.yml
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kabran-tecnologia/kabran-config",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "Shared quality configurations, enforcement scripts, and CI/CD tooling for Kabran projects",
5
5
  "author": "Kabran",
6
6
  "license": "MIT",
@@ -1,4 +1,5 @@
1
- npm run lint
2
- npm run type-check
3
- npm test
4
- npm run build
1
+ # Pre-push hook - kept lightweight by design
2
+ # Full validation (lint, tests, build) runs in CI asynchronously
3
+ #
4
+ # Uncomment below if you want local type-check before push:
5
+ # npm run type-check