From 8aca668f21c4d6d73c1bfdf4cc3aef824308bcf4 Mon Sep 17 00:00:00 2001 From: Angus Hollands Date: Thu, 21 Mar 2024 17:04:29 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Throw=20error=20if=20`typst`=20i?= =?UTF-8?q?s=20not=20available=20(#1013)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Rowan Cockett --- .changeset/clever-dolls-allow.md | 5 +++++ packages/myst-cli/src/build/typst.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/clever-dolls-allow.md diff --git a/.changeset/clever-dolls-allow.md b/.changeset/clever-dolls-allow.md new file mode 100644 index 000000000..f88d09422 --- /dev/null +++ b/.changeset/clever-dolls-allow.md @@ -0,0 +1,5 @@ +--- +"myst-cli": patch +--- + +Throw loud error if `typst` is not available diff --git a/packages/myst-cli/src/build/typst.ts b/packages/myst-cli/src/build/typst.ts index b59227a3d..b641e038f 100644 --- a/packages/myst-cli/src/build/typst.ts +++ b/packages/myst-cli/src/build/typst.ts @@ -57,7 +57,7 @@ export function isTypstAvailable() { export async function runTypstExecutable(session: ISession, typstFile: string) { if (!isTypstAvailable()) { - session.log.debug('typst CLI must be installed to build PDFs from typst'); + session.log.error('The typst CLI must be installed to build PDFs with typst'); return; } if (path.extname(typstFile) !== '.typ') {