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
4 changes: 4 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ in `playground/` or `scripts/` ships.
outside adaptv.
- pnpm 11 (`packageManager`). `playground/` is a **second, independent pnpm project** with its own
lockfile; `pnpm playground:setup` installs it.
- Two TypeScripts. `typescript` (5.9.3) is the compiler API that tsdown's `.d.ts` build and a few
tests import; TypeScript 7 has no JS API. `typescript-7` (an npm alias of `typescript@7.0.2`)
runs `pnpm typecheck` (root and `website/`) through `node_modules/typescript-7/bin/tsc`. Do not
re-add `baseUrl` to a tsconfig: 7 removed it.
- `unzip` on `PATH` — one OTA test checks the zip with a second implementation.

## Before every commit
Expand Down
8 changes: 6 additions & 2 deletions bin/adaptv.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1929,7 +1929,8 @@ async function serveWebPreview(appRoot, opts) {
detached: true,
})
const seen = []
await new Promise((resolve, reject) => {
/** @type {Promise<void>} */
const listening = new Promise((resolve, reject) => {
const onData = (buf) => {
const text = String(buf)
if (verbose) rawOut(text)
Expand Down Expand Up @@ -1970,6 +1971,7 @@ async function serveWebPreview(appRoot, opts) {
)
})
})
await listening
//the addresses are their own block under this row
return ""
},
Expand Down Expand Up @@ -2022,7 +2024,8 @@ async function holdWebPreview(state) {
//The SAME watcher row `dev` uses — bold key, its own line — rather than a second copy of
//the idea. `keys: false` because there is nothing to reload or rebuild from here (R17).
state.watcher = liveWatcher({ keys: false })
await new Promise((resolve) => {
/** @type {Promise<void>} */
const closed = new Promise((resolve) => {
state.child?.on("close", (code) => {
state.stop()
if (code && code !== 0) {
Expand All @@ -2032,6 +2035,7 @@ async function holdWebPreview(state) {
resolve()
})
})
await closed
}

/**
Expand Down
1 change: 1 addition & 0 deletions bin/lib/exec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ function relayOff() {
* @param {string} command
* @param {string[]} args
* @param {{ cwd?: string, env?: NodeJS.ProcessEnv, onLine?: (line: string) => void }} [opts]
* @returns {Promise<void>}
*/
export function exec(command, args, { cwd, env, onLine } = {}) {
return new Promise((resolve, reject) => {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"smoke:webkit": "bash .github/webkit-smoke/smoke.sh",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"typecheck": "tsc --noEmit && tsc -p tsconfig.bin.json",
"typecheck": "node node_modules/typescript-7/bin/tsc --noEmit && node node_modules/typescript-7/bin/tsc -p tsconfig.bin.json",
"website:dev": "pnpm --dir website dev"
},
"imports": {
Expand Down Expand Up @@ -186,6 +186,7 @@
"tailwindcss": "4.2.4",
"tsdown": "0.22.12",
"typescript": "5.9.3",
"typescript-7": "npm:typescript@7.0.2",
"vite": "8.1.6",
"vitest": "4.1.12"
},
Expand Down
211 changes: 211 additions & 0 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions tsconfig.bin.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"allowJs": true,
"checkJs": true,
"noEmit": true,
"strict": false,
"skipLibCheck": true,
"target": "es2022",
"module": "nodenext",
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"module": "ESNext",
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"baseUrl": ".",
"paths": {
"#adaptv/*": ["./src/*"],
// The app supplies the real route tree through this same alias (adaptv stamps
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dev": "adaptv dev web",
"preview": "adaptv preview web",
"build": "adaptv build web",
"typecheck": "node scripts/generate-types.mjs && tsc --noEmit -p tsconfig.json",
"typecheck": "node scripts/generate-types.mjs && node ../node_modules/typescript-7/bin/tsc --noEmit -p tsconfig.json",
"format": "../node_modules/.bin/biome format --write .",
"lint": "../node_modules/.bin/biome check .",
"test": "vitest run",
Expand Down
1 change: 0 additions & 1 deletion website/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
],
"exclude": ["node_modules", "dist", ".output"],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"#adaptv-route-tree": ["./.adaptv/routeTree.gen.ts"],
"@/*": ["./src/*"],
Expand Down
Loading