From 8d16cd85c060d2520f85889a2990c78e04a3694e Mon Sep 17 00:00:00 2001 From: "Cratis Stagehand (AI)" Date: Sun, 30 Aug 2026 21:46:42 +0000 Subject: [PATCH] Make Conformance's build script prepare Core first Conformance/src/internal/metadata.ts imports the JSON schema asset that Source/scripts/copy-css.sh copies into dist/esm/schemas - an artifact Source's own abbreviated "build" script (tsc only) never produces, only "prepare" (tsc -b + rollup + copy-css) does. Conformance's own "build" script called plain tsc directly without preparing Core first, so any caller of `yarn workspace @cratis/components.conformance build` without a prior full Source build fails with TS2307. This is exactly what broke the Publish workflow in run 33336669545, since its "yarn build" step runs every workspace's plain "build" script in sequence. publish.yml has since been patched (PR #226) to run `yarn workspace @cratis/components prepare` before `yarn build`, which already fixes that workflow. This closes the same gap at its source so Conformance's own "build" script is self-sufficient regardless of the caller, matching the "prepare-core" pattern already used by its "typecheck-specs" script. --- Conformance/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Conformance/package.json b/Conformance/package.json index 08442959..bcbdc448 100644 --- a/Conformance/package.json +++ b/Conformance/package.json @@ -35,7 +35,7 @@ "scripts": { "clean": "rm -rf dist", "prepare-core": "yarn workspace @cratis/components prepare", - "build": "node ../node_modules/typescript/bin/tsc -p tsconfig.build.json", + "build": "yarn prepare-core && node ../node_modules/typescript/bin/tsc -p tsconfig.build.json", "typecheck-specs:prepared": "node ../node_modules/typescript/bin/tsc -p tsconfig.json", "typecheck-specs": "yarn prepare-core && yarn typecheck-specs:prepared", "lint": "node ../node_modules/eslint/bin/eslint.js . --quiet",