Move playbill to its own repo
This commit is contained in:
parent
1c64a941cd
commit
879e508d95
8 changed files with 20 additions and 490 deletions
11
src/index.ts
11
src/index.ts
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue