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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue