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:
parent
8355a5468d
commit
9bcd7bbeb2
3 changed files with 2 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue