Small PowerShell and Bash installers for Typst packages distributed from Git instead of Typst Universe.
-
PowerShell:
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/hongjr03/tpdl/v0.1.0/tpdl.ps1))) https://github.com/hongjr03/ouc-bachelor-thesis.git -Ref v0.3.1
-
Bash:
curl -fsSL https://raw.githubusercontent.com/hongjr03/tpdl/v0.1.0/tpdl.sh | bash -s -- https://github.com/hongjr03/ouc-bachelor-thesis.git --ref v0.3.1
-
PowerShell:
.\tpdl.ps1 https://github.com/owner/package-repo.git .\tpdl.ps1 https://github.com/owner/package-repo.git -Ref v0.1.0 -Namespace local .\tpdl.ps1 https://github.com/owner/package-repo.git -PackagePath D:\typst-packages -Force
-
Bash:
./tpdl.sh https://github.com/owner/package-repo.git ./tpdl.sh https://github.com/owner/package-repo.git --ref v0.1.0 --namespace local ./tpdl.sh https://github.com/owner/package-repo.git --package-path /tmp/typst-packages --force
Then import the package with the installed identifier:
#import "@local/package-name:0.1.0": *typst.tomlmust be in the repository root.- The scripts require
[package]fieldsname,version, andentrypoint. versionmust use Typst'smajor.minor.patchformat.- Existing package versions are kept by default. Use
--forceor-Forceto replace them. .gitis never copied.package.excludeis applied on a best-effort basis so Git installs resemble published package bundles more closely.