createRequire resolves relative to the compiled dist/lib/ directory where the JSON file doesn't exist. Use readFileSync with a path resolved from the package root (../../src/assets/) which works from both src/lib/ and dist/lib/. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| src | ||
| templates/rules | ||
| CHANGELOG.md | ||
| package.json | ||
| tsconfig.json | ||
| vitest.config.ts | ||