Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
refactor(docs): extract site workspace
  • Loading branch information
kjanat committed Jul 17, 2026
commit e57ead8decc61d32bf2a159a9918a528baa5d859
34 changes: 22 additions & 12 deletions bun.lock

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

2 changes: 1 addition & 1 deletion docs/.vitepress/data/docs-contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
*/

import { readFile } from 'node:fs/promises';
import { createTestPrompter, PROMPT_CANCEL, runCommand } from '@kjanat/dreamcli/testkit';
import { describe, expect, it } from 'vitest';
import { createTestPrompter, PROMPT_CANCEL, runCommand } from '#dreamcli/testkit';

import {
activityCmd,
Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/twoslash/testing-fixtures.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { arg, command, flag } from '#dreamcli';
import { arg, command, flag } from '@kjanat/dreamcli';

export const greet = command('greet')
.arg('name', arg.string())
Expand Down
28 changes: 28 additions & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "@kjanat/dreamcli-docs",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"build": "bun --bun vitepress build .",
"deploy": "wrangler deploy",
"dev": "bun --bun vitepress dev . --host --port ${PORT:-5173}",
"preview": "bun --bun vitepress preview .",
"upload": "wrangler versions upload"
},
"dependencies": {
"@kjanat/dreamcli": "file:.."
},
"devDependencies": {
"@shikijs/transformers": "^4.3.1",
"@shikijs/vitepress-twoslash": "^4.3.1",
"@types/node": "catalog:",
"floating-vue": "^5.2.2",
"mermaid": "^11.16.0",
"typedoc": "^0.28.20",
"typescript": "catalog:",
"vite": "^8.1.4",
"vitepress": "next",
"wrangler": "^4.110.0"
}
Comment thread
kjanat marked this conversation as resolved.
}
8 changes: 8 additions & 0 deletions docs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"types": ["node", "vite", "vitest"]
},
"include": ["./**/*.ts"],
"exclude": ["./.vitepress/cache", "./.vitepress/dist", "./node_modules"]
}
2 changes: 1 addition & 1 deletion examples/pwsh-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@kjanat/dreamcli": "link:@kjanat/dreamcli"
"@kjanat/dreamcli": "file:../.."
},
"devDependencies": {
"@types/bun": "catalog:",
Expand Down
25 changes: 7 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,19 @@
"!**/.cache",
"!**/AGENTS.md"
],
"workspaces": ["./examples/*"],
"workspaces": ["./examples/*", "./docs"],
"scripts": {
"bd": "run build",
"build": "bun --bun tsdown",
"build:watch": "run build --watch",
"ci": "run -pk typecheck lint format:check meta-descriptions:check test docs:build bd",
"coverage": "vitest run --coverage",
"dev": "run -p build:watch docs:dev",
"docs:build": "bun --bun vitepress build docs",
"docs:deploy": "wrangler deploy",
"docs:dev": "bun --bun vitepress dev docs --host --port ${PORT:-5173}",
"docs:preview": "bun --bun vitepress preview docs",
"docs:upload": "wrangler versions upload",
"docs:build": "run --dir docs build",
"docs:deploy": "run --dir docs deploy",
"docs:dev": "run --dir docs dev",
"docs:preview": "run --dir docs preview",
"docs:upload": "run --dir docs upload",
"fmt": "run -s lint:fix fmt:dprint",
"fmt:autofix": "dprint fmt --allow-no-files --excludes .github",
"fmt:dprint": "dprint fmt",
Expand Down Expand Up @@ -103,39 +103,28 @@
"test:watch": "vitest",
"typecheck": "bunx @typescript/native --noEmit",
"typecheck:gh": "run --dir examples/gh typecheck",
"upgrade": "bun update --latest && bun add -D vitepress@next",
"upgrade": "bun update --latest && bun --cwd docs add -D vitepress@next",
"version:check": "bun scripts/check-version-sync.ts"
},
"overrides": {
"vitepress": "next"
},
"dependencies": {
"ansispeck": "^0.2.0"
},
"devDependencies": {
"@arethetypeswrong/core": "^0.18.5",
"@iarna/toml": "^2.2.5",
"@shikijs/transformers": "^4.3.1",
"@shikijs/vitepress-twoslash": "^4.3.1",
"@types/bun": "catalog:",
"@types/deno": "^2.7.0",
"@types/node": "catalog:",
"@typescript/native": "catalog:",
"@vitest/coverage-v8": "^4.1.10",
"biome": "npm:@biomejs/biome@^2.5.4",
"dprint": "^0.55.1",
"floating-vue": "^5.2.2",
"knip": "^6.25.0",
"mermaid": "^11.16.0",
"publint": "^0.3.21",
"runner-run": "0.19.1",
"tsdown": "^0.22.4",
"typedoc": "^0.28.20",
"typescript": "catalog:",
"vite": "^8.1.4",
"vitepress": "^2.0.0-alpha.18",
"vitest": "^4.1.10",
"wrangler": "^4.110.0",
"yaml": "^2.9.0"
},
"packageManager": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"types": ["bun", "node", "deno", "vite", "vitest"],
"types": ["bun", "node", "deno", "vitest"],

"strict": true,
"noUnusedLocals": true,
Expand Down
Loading