Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 47 additions & 52 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,26 @@
"preview": "vp preview --outDir dist"
},
"dependencies": {
"@askrjs/askr": "0.0.77",
"@askrjs/askr": "0.0.84",
"@askrjs/charts": "0.1.4",
"@askrjs/fetch": "0.0.2",
"@askrjs/i18n": "0.0.2",
"@askrjs/logos": "0.0.5",
"@askrjs/lucide": "0.0.5",
"@askrjs/lucide": "0.0.6",
"@askrjs/monaco": "0.0.6",
"@askrjs/otel": "0.0.3",
"@askrjs/themes": "0.0.16",
"@askrjs/ui": "0.0.20",
"@askrjs/themes": "0.0.19",
"@askrjs/ui": "0.0.23",
"@fontsource-variable/domine": "^5.3.0"
},
"devDependencies": {
"@askrjs/auth": "0.0.7",
"@askrjs/cli": "0.0.15",
"@askrjs/cli": "0.0.17",
"@askrjs/node": "0.0.7",
"@askrjs/schema": "0.0.4",
"@askrjs/server": "0.0.10",
"@askrjs/testing": "0.0.2",
"@askrjs/vite": "0.0.8",
"@askrjs/testing": "0.0.3",
"@askrjs/vite": "0.0.10",
"@types/node": "^26.1.2",
"tsx": "4.23.1",
"typescript": "^6.0.3",
Expand All @@ -55,6 +55,6 @@
"dompurify": "3.4.12"
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
"node": ">=24.15.0"
}
}
22 changes: 18 additions & 4 deletions scripts/generate-api-snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,28 @@ const snapshot = entrypoints.map((entrypoint) => {

const unformattedManifestSource =
`// Generated by scripts/generate-api-snapshot.ts. Do not edit.\n` +
`export const apiManifest = ${JSON.stringify(snapshot, null, 2)} as const;\n`;
`export interface ApiEntrypointDefinition {\n` +
` readonly packageName: string;\n` +
` readonly version: string;\n` +
` readonly subpath: string;\n` +
` readonly importName: string;\n` +
` readonly slug: string;\n` +
` readonly symbolSet: string;\n` +
`}\n\n` +
`export const apiManifest: readonly ApiEntrypointDefinition[] = ${JSON.stringify(snapshot, null, 2)};\n`;
const unformattedSnapshotSource =
`// Generated by scripts/generate-api-snapshot.ts. Do not edit.\n` +
`export const apiSymbolSets = ${JSON.stringify(symbolSets, null, 2)} as const;\n`;
`export interface ApiSymbolDefinition {\n` +
` readonly name: string;\n` +
` readonly anchor: string;\n` +
` readonly signature: string;\n` +
` readonly typeOnly: boolean;\n` +
`}\n\n` +
`export const apiSymbolSets: Readonly<Record<string, readonly ApiSymbolDefinition[]>> = ${JSON.stringify(symbolSets, null, 2)};\n`;
const unformattedVersionsSource =
`// Generated from installed @askrjs package manifests. Do not edit.\n` +
`export const packageVersions = ${JSON.stringify(packageVersions, null, 2)} as const;\n\n` +
`export const packagePeers = ${JSON.stringify(packagePeers, null, 2)} as const;\n`;
`export const packageVersions: Readonly<Record<string, string>> = ${JSON.stringify(packageVersions, null, 2)};\n\n` +
`export const packagePeers: Readonly<Record<string, readonly string[]>> = ${JSON.stringify(packagePeers, null, 2)};\n`;
const manifestSource = formatGeneratedTypeScript(
manifestPath,
unformattedManifestSource
Expand Down
13 changes: 12 additions & 1 deletion scripts/verify-static-output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ const routeFile = (route: string) =>
const apiSymbolsByRoute = new Map(
apiManifest.map((entrypoint) => [
`/docs/reference/api/${entrypoint.packageName.slice('@askrjs/'.length)}/${entrypoint.slug}`,
apiSymbolSets[entrypoint.symbolSet as keyof typeof apiSymbolSets],
(apiSymbolSets[entrypoint.symbolSet] ?? []).filter(
(symbol) =>
!(
entrypoint.packageName === '@askrjs/lucide' &&
entrypoint.subpath === '.' &&
symbol.name === 'createIcon'
)
),
])
);
const marketing = [
Expand Down Expand Up @@ -264,6 +271,10 @@ assert(
lucideRoot.includes('href="https://lucide.dev/"'),
'/docs/reference/api/lucide/root must attribute the upstream Lucide project'
);
assert(
!lucideRoot.includes('id="create-icon"'),
'/docs/reference/api/lucide/root must not expose the createIcon factory'
);

for (const asset of [
'assets/askr-logo-64.avif',
Expand Down
Loading