diff --git a/build-components.mjs b/build-components.mjs index ba34594..4b0e073 100644 --- a/build-components.mjs +++ b/build-components.mjs @@ -100,7 +100,9 @@ export async function buildComponents({ config, compiler, plan, pkg, output, rec await fs.writeFile( shim, `export * from ${JSON.stringify(url)};` + - (name === "@quixos/camino-react" ? "" : `export {default} from ${JSON.stringify(url)};`), + (["@quixos/camino-react", "@quixos/camino-react/ui"].includes(name) + ? "" + : `export {default} from ${JSON.stringify(url)};`), ); sharedAliases.push("--alias:" + name + "=" + shim, "--external:" + url); } diff --git a/build-react-contracts.mjs b/build-react-contracts.mjs index 0081175..ed07a9e 100644 --- a/build-react-contracts.mjs +++ b/build-react-contracts.mjs @@ -52,7 +52,7 @@ for (const [id, entry] of Object.entries(config.members)) { `import type {${entry.export} as Props} from ${typeImport}; type Assert = T; type ObjectProps = Assert; -type ReservedSubject = Assert<"subject" extends keyof Props ? false : true>; +type ReservedRendererProps = Assert extends never ? true : false>; ${member.contract === "org.quixos.react.subject-only/1" ? "type SubjectOnly = Assert<{} extends Props ? true : false>;" : ""} export type {Props};\n`, );