Move playbill to its own repo

This commit is contained in:
Endeavorance 2025-02-22 14:30:43 -05:00
parent 1c64a941cd
commit 879e508d95
8 changed files with 20 additions and 490 deletions

View file

@ -1,12 +1,13 @@
import { parseArgs } from "node:util";
import chalk from "chalk";
import { loadBindingFile } from "./binding";
import { DirectiveError, processLang } from "./lang";
import {
type AnyResource,
DirectiveError,
ValidatedPlaybillSchema,
compileScript,
getEmptyPlaybill,
} from "./playbill-schema";
} from "@proscenium/playbill";
import chalk from "chalk";
import { loadBindingFile } from "./binding";
import { loadResourceFile } from "./resource";
import { usage } from "./usage";
@ -148,7 +149,7 @@ async function main(): Promise<boolean> {
verboseLog("Processing descriptions");
for (const resource of loadedResources) {
try {
resource.description = await processLang(resource.description, playbill);
resource.description = compileScript(resource.description, playbill);
} catch (error) {
if (error instanceof DirectiveError) {
console.error(