siefkenj / unified-latex

Utilities for parsing and manipulating LaTeX ASTs with the Unified.js framework
MIT License
91 stars 24 forks source link

`ligature-macros.json`, `output.entryFileNames", and building on Windows #119

Open oscarlevin opened 3 weeks ago

oscarlevin commented 3 weeks ago

While I was able to build successfully on linux following the directions in the readme, any time I tried on Windows I got a bunch of errors. These seem to come from the way packages/unified-latex-util-ligatures includes the ligature-macros.json file, which is just a path to the actual .json file in packages/support-tables. The error says that vite cannot parse the json. But copying the actual json to the ligatures package seems to solve this.

A second build error occurs for a number of packages, complaining that ..\..\......[long relative path]\packages\unified-latex-lint\index.cjs, the pattern for output.entryFileNames, that "patterns can be neither absolute nor relative paths. Perhaps this (and the other issue) are because of forward vs backward slashes? I'm not even sure where to look to start finding a reason.

Non-urgent since I can work in linux, but eventually a fix would be helpful.

siefkenj commented 3 weeks ago

It certainly would be nice if this could work on Windows. Unfortunately I have no windows environment to test on, so it's not something I can help with...