@miragon/slidev-validator 0.8.1 → 0.8.3

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/helpers.mjs +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miragon/slidev-validator",
3
- "version": "0.8.1",
3
+ "version": "0.8.3",
4
4
  "type": "module",
5
5
  "description": "The Miragon Slidev deck validator: a configurable design-system linter (stable rule IDs, off/warn/error severities, extends/overrides/exceptions) shipped as a versioned CLI so central guardrail improvements reach decks over npm instead of a frozen copy.",
6
6
  "keywords": [
@@ -13,11 +13,11 @@
13
13
  "license": "MIT",
14
14
  "repository": {
15
15
  "type": "git",
16
- "url": "git+https://github.com/Miragon/slidev-deck-template.git",
16
+ "url": "git+https://github.com/Miragon/brand-toolbox.git",
17
17
  "directory": "packages/validator"
18
18
  },
19
- "homepage": "https://github.com/Miragon/slidev-deck-template/tree/main/packages/validator#readme",
20
- "bugs": "https://github.com/Miragon/slidev-deck-template/issues",
19
+ "homepage": "https://github.com/Miragon/brand-toolbox/tree/main/packages/validator#readme",
20
+ "bugs": "https://github.com/Miragon/brand-toolbox/issues",
21
21
  "bin": {
22
22
  "slidev-validator": "bin/index.mjs"
23
23
  },
package/src/helpers.mjs CHANGED
@@ -82,8 +82,10 @@ export async function slideSourceFiles() {
82
82
  return [...files]
83
83
  }
84
84
 
85
+ const NON_SOURCE_DIRS = new Set(['node_modules', '.git', 'dist', '.slidev', '.vite', 'coverage'])
86
+
85
87
  /**
86
- * Every committed Excalidraw diagram source in the deck. Recurses all of `deck/`
88
+ * Every committed Excalidraw diagram source in the deck. Recurses `deck/`, skipping build output and tool caches,
87
89
  * for `*.excalidraw.svg` (under any `resources/` folder, at any nesting depth), so
88
90
  * diagrams in a nested deck are found the same as in the flat reference deck.
89
91
  */
@@ -92,7 +94,7 @@ export function excalidrawSvgFiles() {
92
94
  const walk = (d) => {
93
95
  if (!existsSync(d)) return
94
96
  for (const n of readdirSync(d)) {
95
- if (n === 'node_modules' || n === '.git') continue
97
+ if (NON_SOURCE_DIRS.has(n)) continue
96
98
  const p = join(d, n)
97
99
  let st
98
100
  try {