openpencil/tools/checks
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
..
architecture fix: match Figma when dragging, drawing, duplicating, and pasting (#894) 2026-10-05 12:39:03 +00:00
docs build(tools): group tools by role and gate them like the rest of the repo (#791) 2026-09-30 05:00:31 +04:00
i18n feat(collab)!: sync layer trees as a CRDT and open each room in its own tab (#902) 2026-10-06 10:40:25 +00:00
lint chore: prefer es-toolkit helpers and lint the mechanical cases (#898) 2026-10-05 09:34:00 +00:00
package-quality fix(core): load fontoxpath under Node's ESM loader (#824) 2026-10-06 11:44:16 +00:00
secret-scan build(tools): group tools by role and gate them like the rest of the repo (#791) 2026-09-30 05:00:31 +04:00
test-homes fix(fig): write text glyphs from the layout the renderer draws (#928) 2026-10-06 11:37:02 +00:00
test-types test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
type-shapes chore: prefer es-toolkit helpers and lint the mechanical cases (#898) 2026-10-05 09:34:00 +00:00