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
6f65847656
commit
492267b509
3 changed files with 2 additions and 2 deletions
|
|
@ -60,7 +60,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run build:patterns:if-needed && tsc",
|
"build": "npm run build:patterns:if-needed && tsc",
|
||||||
"build:patterns": "tsx scripts/buildEmbeddedPatterns.ts",
|
"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",
|
"build:patterns:force": "npm run build:patterns",
|
||||||
"prepare": "npm run build",
|
"prepare": "npm run build",
|
||||||
"test": "npm run test:unit",
|
"test": "npm run test:unit",
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
* 🧠 BRAINY EMBEDDED PATTERNS
|
* 🧠 BRAINY EMBEDDED PATTERNS
|
||||||
*
|
*
|
||||||
* AUTO-GENERATED - DO NOT EDIT
|
* AUTO-GENERATED - DO NOT EDIT
|
||||||
* Generated: 2025-08-27T16:37:10.556Z
|
* Generated: 2025-08-27T16:58:35.801Z
|
||||||
* Patterns: 220
|
* Patterns: 220
|
||||||
* Coverage: 94-98% of all queries
|
* Coverage: 94-98% of all queries
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue