diff --git a/bun.lock b/bun.lock index 0b3f09a..5e4cf48 100644 --- a/bun.lock +++ b/bun.lock @@ -4,7 +4,7 @@ "": { "name": "@proscenium/muse", "dependencies": { - "@proscenium/playbill": "0.0.5", + "@proscenium/playbill": "0.0.2", "chalk": "^5.4.1", "yaml": "^2.7.0", "zod": "^3.24.1", @@ -37,7 +37,7 @@ "@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@1.9.4", "", { "os": "win32", "cpu": "x64" }, "sha512-8Y5wMhVIPaWe6jw2H+KlEm4wP/f7EW3810ZLmDlrEEy5KvBsb9ECEfu/kMWD484ijfQ8+nIi0giMgu9g1UAuuA=="], - "@proscenium/playbill": ["@proscenium/playbill@0.0.5", "https://git.astral.camp/api/packages/proscenium/npm/%40proscenium%2Fplaybill/-/0.0.5/playbill-0.0.5.tgz", { "peerDependencies": { "typescript": "^5" } }, "sha512-4TzEe3LpZ2WAep/OWtuNoGiRb2NilfBBN9KQ65/sYSkmBq4Wtdploqo/7+R1Twja/AvOBGgw+Art12beywhqtQ=="], + "@proscenium/playbill": ["@proscenium/playbill@0.0.2", "https://git.astral.camp/api/packages/proscenium/npm/%40proscenium%2Fplaybill/-/0.0.2/playbill-0.0.2.tgz", { "peerDependencies": { "typescript": "^5" } }, "sha512-eXrfAK9xQzr0AnY3QJcY+DujWafJh6ntO5KYDdhWE4HE5VfWrLVk42LVFlM7HDkulnjwa6uvwaET2QrR3RWKlw=="], "@types/bun": ["@types/bun@1.2.3", "", { "dependencies": { "bun-types": "1.2.3" } }, "sha512-054h79ipETRfjtsCW9qJK8Ipof67Pw9bodFWmkfkaUaRiIQ1dIV2VTlheshlBx3mpKr0KeK8VqnMMCtgN9rQtw=="], diff --git a/package.json b/package.json index fd5a9de..957d4b9 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "chalk": "^5.4.1", "yaml": "^2.7.0", "zod": "^3.24.1", - "@proscenium/playbill": "0.0.5" + "@proscenium/playbill": "0.0.2" }, "scripts": { "fmt": "bunx --bun biome check --fix", diff --git a/playbill/binding.yaml b/playbill/binding.yaml index 8cd523d..fd2edbc 100644 --- a/playbill/binding.yaml +++ b/playbill/binding.yaml @@ -3,6 +3,3 @@ id: the-great-spires name: The Great Spires author: "Endeavorance " version: 0.0.1 -files: - - ./spires/**/*.yaml - - ./spires/**/*.md diff --git a/src/index.ts b/src/index.ts index 8240cb1..3a9f14e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,6 +2,7 @@ import { parseArgs } from "node:util"; import { type AnyResource, ValidatedPlaybillSchema, + checkDirectives, getEmptyPlaybill, } from "@proscenium/playbill"; import chalk from "chalk"; @@ -164,6 +165,13 @@ async function main(): Promise { return ExitCode.Error; } + const directiveValidationResult = checkDirectives(validatedPlaybill.data); + + if (!directiveValidationResult) { + console.error("Error validating playbill directives"); + return ExitCode.Error; + } + verboseLog("Playbill validated"); // -- EXIT EARLY IF JUST CHECKING VALIDATION --//