typst / packages

Packages for Typst.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggestion: versions as subdirectories

classabbyamp opened this issue · comments

I've worked with large monorepos that have thousands of entries in a single directory before (namely https://github.com/void-linux/void-packages), and it becomes unfun pretty quickly when trying to do blames or logs on parts of the tree. To prevent issues like this, I'd suggest moving to a layout like this:

packages/
    namespace/
        package_name/
            1.0.1/
            1.2.1/

this should help prevent things from getting out of control

One unfortunate effect of that is that the directory layout diverges between this repository and the directories Typst recognizes/uses on local installations. Unless we change that too, which would be a breaking change.

The package URLs also don't have subdirectories for each package but I guess that being different doesn't really matter.