Commit 59e5f90
committed
fix(FR-2719): build docs-toolkit before PDF run so docs-toolkit CLI is on PATH
backend.ai-docs-toolkit ships its CLI as a package bin pointing at
dist/cli.js. On a fresh `pnpm install`, that file does not exist yet
(tsc has not run), so pnpm silently fails to create the
.bin/docs-toolkit symlink and emits a WARN. The downstream
`pnpm run pdf:all` (which calls `docs-toolkit pdf --lang all`) then
fails with `spawn ENOENT` because the bin is not on PATH.
The fix is a one-time toolkit build + re-install after the initial
install: tsc populates dist/cli.js, then the second install picks up
the now-existing bin and creates the symlink. The original
`pnpm run pdf:all` script's own `build:toolkit` step still rebuilds
the toolkit, but it cannot fix the missing symlink on its own.
Caught by a workflow_dispatch dry run before merging.1 parent 774a538 commit 59e5f90
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
249 | 260 | | |
250 | 261 | | |
251 | 262 | | |
| |||
0 commit comments