diff --git a/ark/attest/CHANGELOG.md b/ark/attest/CHANGELOG.md index f313f7565..1bc468e07 100644 --- a/ark/attest/CHANGELOG.md +++ b/ark/attest/CHANGELOG.md @@ -2,6 +2,10 @@ NOTE: This changelog is incomplete, but will include notable attest-specific changes (many updates consist almost entirely of bumped `arktype` versions for assertions). +## 0.44.3 + +Decouple attest trace/stats from pnpm + ## 0.44.0 Support assertions for JSDoc contents associated with an `attest`ed value diff --git a/ark/attest/cli/shared.ts b/ark/attest/cli/shared.ts index e36d2d103..38aa7a751 100644 --- a/ark/attest/cli/shared.ts +++ b/ark/attest/cli/shared.ts @@ -1,2 +1,2 @@ export const baseDiagnosticTscCmd = - "pnpm tsc --noEmit --extendedDiagnostics --incremental false --tsBuildInfoFile null" + "npm exec -- tsc --noEmit --extendedDiagnostics --incremental false --tsBuildInfoFile null" diff --git a/ark/attest/package.json b/ark/attest/package.json index 759363c1c..1dd76f6a5 100644 --- a/ark/attest/package.json +++ b/ark/attest/package.json @@ -1,6 +1,6 @@ { "name": "@ark/attest", - "version": "0.44.2", + "version": "0.44.3", "license": "MIT", "author": { "name": "David Blass", diff --git a/ark/docs/app/static.json/route.ts b/ark/docs/app/static.json/route.ts index e5e95e59e..9d68bcb4a 100644 --- a/ark/docs/app/static.json/route.ts +++ b/ark/docs/app/static.json/route.ts @@ -1,20 +1,20 @@ import type { OramaDocument } from "fumadocs-core/search/orama-cloud" import { NextResponse } from "next/server" -import { source } from "../../lib/source" +import { source } from "../../lib/source.tsx" export const revalidate = false -export const GET = async () => { +export const GET = () => { const results: OramaDocument[] = [] for (const page of source.getPages()) { results.push({ id: page.url, - structured: (await page.data.load()).structuredData, + structured: (page.data as any).structuredData, url: page.url, title: page.data.title, - description: page.data.description ?? "" - }) + description: page.data.description + } as never) } return NextResponse.json(results) diff --git a/ark/docs/lib/sync-engine.ts b/ark/docs/lib/updateOramaSearch.ts similarity index 100% rename from ark/docs/lib/sync-engine.ts rename to ark/docs/lib/updateOramaSearch.ts diff --git a/ark/docs/package.json b/ark/docs/package.json index 9d15331fb..2b6c69865 100644 --- a/ark/docs/package.json +++ b/ark/docs/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "build": "next build", + "build": "next build && ts ./lib/updateOramaSearch.ts", "dev": "next dev --turbo", "buildAndStart": "pnpm build && pnpm start", "start": "pnpm serve out", @@ -15,9 +15,11 @@ }, "dependencies": { "@ark/fs": "workspace:*", + "@ark/repo": "workspace:*", "@ark/util": "workspace:*", "@fumadocs/mdx-remote": "1.2.0", "@icons-pack/react-simple-icons": "11.1.0", + "@oramacloud/client": "2.1.4", "@shikijs/transformers": "2.3.2", "arkdark": "workspace:*", "arkthemes": "workspace:*", @@ -43,7 +45,6 @@ }, "devDependencies": { "@fumadocs/cli": "0.0.7", - "@oramacloud/client": "^2.1.4", "@tailwindcss/postcss": "4.0.4", "@types/mdx": "2.0.13", "@types/react": "19.0.8", diff --git a/ark/repo/scratch.ts b/ark/repo/scratch.ts index 83e5165d2..eb8cd7007 100644 --- a/ark/repo/scratch.ts +++ b/ark/repo/scratch.ts @@ -1 +1,12 @@ import { type } from "arktype" + +const identical = type({ + grouping: "(0 | (1 | (2 | (3 | (4 | 5)[])[])[])[])[]", + nestedGenerics: + "Extract | boolean | null | unknown[], object>" +}) + +// fully reduced inference +// and fully runtime introspectable +console.log(identical.get("grouping").expression) +console.log(identical.get("nestedGenerics").expression)