tyler
is a JavaScript tool that can make the life a lot easier when developing packages (libraries and templates), without the cumbersome editing and copy-pasting, manual folder mangement, etc. I developed it in three days so it is still immature, but I have (not exactly but) succesufully published my new package. It has the following features now:
- Install package locally to be able to use with
@local/somepkgs:0.1.0
- Compile relative entrypoint import (e.g.
../lib.typst
) to preview import (e.g.@preview/somepkgs:0.1.0
) - Bump the version of the package interactively or with specified semver as CLI argument
- Package the library or package into
typst/packages
ready for publishing - Check if the package manifest (
typetst.toml
) is valid before publishing - Semi-automatic publishing that creates a PR to the Typst preview package repository
The next planned features include PR template prompting and better publishing workflow. Iām also planning on to improve the process more by receiving feedback from package maintainers like you! Welcome to contribute by commenting.
You can see the repository down here:
You can try it now by:
bun i -g @mkpoli/tyler
tyler build -i -p
Full Video:
https://cdn.discordapp.com/attachments/1308756183330459648/1308756183703621632/recording.mp4