From 5fd9573ee1e9ad03c6235bd3dadca749449c5669 Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Tue, 3 Jun 2025 20:05:59 -0300 Subject: [PATCH] new library entrypoint to hide private names --- lib.typ | 1 + tests/strfmt-tests.typ | 3 ++- typst.toml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 lib.typ diff --git a/lib.typ b/lib.typ new file mode 100644 index 0000000..d2f7329 --- /dev/null +++ b/lib.typ @@ -0,0 +1 @@ +#import "oxifmt.typ": strfmt diff --git a/tests/strfmt-tests.typ b/tests/strfmt-tests.typ index a7a17e8..e7a37ff 100644 --- a/tests/strfmt-tests.typ +++ b/tests/strfmt-tests.typ @@ -1,4 +1,5 @@ -#import "../oxifmt.typ": strfmt, using-0120 +#import "../lib.typ": strfmt +#import "../oxifmt.typ": using-0120 #{ // test basics (sequential args, named args, pos args) diff --git a/typst.toml b/typst.toml index 0174763..e8fe9f0 100644 --- a/typst.toml +++ b/typst.toml @@ -4,5 +4,5 @@ version = "0.3.0" authors = ["PgBiel "] license = "MIT OR Apache-2.0" description = "Convenient Rust-like string formatting in Typst" -entrypoint = "oxifmt.typ" +entrypoint = "lib.typ" repository = "https://github.com/PgBiel/typst-oxifmt"