diff --git a/packages/boxel-cli/scripts/build-types.ts b/packages/boxel-cli/scripts/build-types.ts index fef307fb3a5..c5fabc1124d 100644 --- a/packages/boxel-cli/scripts/build-types.ts +++ b/packages/boxel-cli/scripts/build-types.ts @@ -14,6 +14,14 @@ * --declaration --emitDeclarationOnly`). * Source `.d.ts` files in `base/types` * are passed through as-is. + * - `bundled-types/runtime-common/` — auto-generated `.d.ts` for + * `packages/runtime-common`. See + * `buildRuntimeCommonDts()`. Backs the + * `@cardstack/runtime-common` path + * alias; base's `.d.ts` import its + * `primitive`/`realmURL` symbols and + * field/query types, on which card + * field-value typing depends. * - `bundled-types/host-types/` — `packages/host/types/*` ambient * `.d.ts` files, referenced via the * `'*': ['/types/*']` fallback @@ -303,8 +311,108 @@ function annotateInferredTypes(code: string): string { ); } +/** + * Generate `.d.ts` for every module in `packages/runtime-common` and + * copy them into the destination. Runtime-common is plain `.ts` (no + * `