openpencil/tools
MrHard 02fd53a8e0
fix(core): load fontoxpath under Node's ESM loader (#824)
* fix(core): load fontoxpath under Node's ESM loader

fontoxpath is CommonJS, so Node exposes its exports only on default and openpencil query / MCP query_nodes failed with 'evaluateXPathToNodes is not a function'. Closes #787.

* test(tools): run an XPath query in the package runtime smoke check

The Bun-run unit tests take fontoxpath's named exports, so they never covered the Node fallback to default.

* test(tools): also run matchByXPath in the XPath smoke scenario

* refactor(core): import fontoxpath types through one namespace import

---------

Co-authored-by: mrhard9090 <moltrax88@gmail.com>
Co-authored-by: Danila Poyarkov <dev@dannote.net>
2026-10-06 11:44:16 +00:00
..
checks fix(core): load fontoxpath under Node's ESM loader (#824) 2026-10-06 11:44:16 +00:00
ci fix(ci): install the review guidance tool's dependencies (#891) 2026-10-05 06:24:03 +00:00
dev refactor(fig): export the symbol readers and move the library tests home (#929) 2026-10-06 10:44:22 +00:00
generate chore: prefer es-toolkit helpers and lint the mechanical cases (#898) 2026-10-05 09:34:00 +00:00
release fix: validate parsed JSON at untrusted boundaries with Valibot (#855) 2026-10-04 17:01:50 +00:00
AGENTS.md chore: prefer es-toolkit helpers and lint the mechanical cases (#898) 2026-10-05 09:34:00 +00:00
package.json build: update dependencies (#873) 2026-10-04 12:48:24 +00:00
tsconfig.json