diff --git a/core b/core index 61a53d5..b7fa60a 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 61a53d5063009a1226de48dce445fc407997d0bf +Subproject commit b7fa60adfa0434481d26c99ae9e6c57faffb2984 diff --git a/docgen/toBeGeneratedTypes.ts b/docgen/toBeGeneratedTypes.ts index 6601ae1..d627380 100644 --- a/docgen/toBeGeneratedTypes.ts +++ b/docgen/toBeGeneratedTypes.ts @@ -2,23 +2,11 @@ import type { Prettify } from '@ts-rest/core' import type { PClient as C } from '../src/lib/client-types.js' -type PP = Prettify - -type P0 = { - [K in keyof PP]: Prettify -} - /** * @interface */ export type Client = { - [K in keyof P0]: P0[K] extends (...args: any[]) => any - ? P0[K] - : Prettify<{ - [K2 in keyof P0[K]]: P0[K][K2] extends (...args: any[]) => any - ? P0[K][K2] - : Prettify - }> + [K in keyof C]: Prettify } export type PubRaw = C['pub'] diff --git a/docgen/utils/processFile.ts b/docgen/utils/processFile.ts index 3ff640f..20d8f5f 100644 --- a/docgen/utils/processFile.ts +++ b/docgen/utils/processFile.ts @@ -46,5 +46,7 @@ export async function processFile< const TEMP = new URL('../TEMP.md', import.meta.url).pathname const postProcessedMarkdown = await postprocessingFix(processed, TEMP) + rmSync(TEMP) + return postProcessedMarkdown as any } diff --git a/documentation_generation.md b/documentation_generation.md new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json index f8b501b..38c9870 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "types": "dist/index.d.ts", "scripts": { "build": "tsup", - "postbuild": "pnpm attw --pack . && size-limit", + "postbuild": "npm pack && attw . && size-limit", "lint": "tsc", "ci": "rm -rf dist && npm run lint && pnpm run test && pnpm run build", "prepublish": "pnpm run ci",