@windyroad/style-guide 0.5.0-preview.946 → 0.5.1-preview.1014

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.
@@ -79,5 +79,5 @@
79
79
  }
80
80
  },
81
81
  "name": "wr-style-guide",
82
- "version": "0.5.0"
82
+ "version": "0.5.1"
83
83
  }
@@ -51,6 +51,10 @@ esac
51
51
  # architect-enforce-edit.sh + jtbd-enforce-edit.sh. Short-circuits before
52
52
  # the *.html extension check below would otherwise fire on story-map HTML.
53
53
  case "$FILE_PATH" in
54
+ # VCS-internal plumbing is never a project artefact (P458; sibling of the P004
55
+ # outside-the-repo exclusion, for paths INSIDE the repo root).
56
+ */.git/*|.git/*)
57
+ exit 0 ;;
54
58
  */docs/story-maps/*|docs/story-maps/*)
55
59
  exit 0 ;;
56
60
  */docs/stories/*|docs/stories/*)
@@ -61,6 +61,10 @@ assert_path_blocked() {
61
61
 
62
62
  # --- Regression: non-exempt UI files still gate ---
63
63
 
64
+ @test "style-guide: exempts VCS-internal .git/ files even with a gated extension (P458)" {
65
+ assert_path_allowed "$PWD/.git/hooks/pre-commit.css"
66
+ }
67
+
64
68
  @test "style-guide: still blocks an unrelated .html file when no policy exists" {
65
69
  # No docs/STYLE-GUIDE.md created — hook should still block this HTML.
66
70
  assert_path_blocked "$PWD/public/index.html"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windyroad/style-guide",
3
- "version": "0.5.0-preview.946",
3
+ "version": "0.5.1-preview.1014",
4
4
  "description": "Style guide enforcement for CSS and UI components",
5
5
  "bin": {
6
6
  "windyroad-style-guide": "./bin/install.mjs"