fix: use .cjs extension for check-patterns script

- Rename check-patterns.js to check-patterns.cjs for CommonJS compatibility
- Update package.json to reference .cjs file
- This fixes ES module errors when checking if patterns need rebuild
This commit is contained in:
David Snelling 2025-08-27 10:00:56 -07:00
parent e30d207cb6
commit 012fdf0738
3 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@
"scripts": {
"build": "npm run build:patterns:if-needed && tsc",
"build:patterns": "tsx scripts/buildEmbeddedPatterns.ts",
"build:patterns:if-needed": "node scripts/check-patterns.js || npm run build:patterns",
"build:patterns:if-needed": "node scripts/check-patterns.cjs || npm run build:patterns",
"build:patterns:force": "npm run build:patterns",
"prepare": "npm run build",
"test": "npm run test:unit",

View file

@ -2,7 +2,7 @@
* 🧠 BRAINY EMBEDDED PATTERNS
*
* AUTO-GENERATED - DO NOT EDIT
* Generated: 2025-08-27T16:37:10.556Z
* Generated: 2025-08-27T16:58:35.801Z
* Patterns: 220
* Coverage: 94-98% of all queries
*