2026-06-11 15:04:50 +08:00
|
|
|
import { execFileSync } from 'node:child_process'
|
|
|
|
|
import { resolve } from 'node:path'
|
|
|
|
|
|
|
|
|
|
// publint every publishable package (vendor/ is private upstream code and
|
|
|
|
|
// examples/ are not packages; both are out of scope).
|
|
|
|
|
const packages = [
|
|
|
|
|
'packages/llm',
|
|
|
|
|
'packages/session',
|
2026-06-15 21:05:46 +08:00
|
|
|
'packages/session-persistence',
|
|
|
|
|
'packages/session-persistence-jsonl',
|
2026-06-15 21:45:21 +08:00
|
|
|
'packages/session-persistence-sqlite',
|
2026-06-11 15:04:50 +08:00
|
|
|
'packages/system-prompt',
|
|
|
|
|
'packages/tools',
|
|
|
|
|
'packages/agent',
|
|
|
|
|
'packages/agent-loop',
|
2026-06-12 23:28:44 +08:00
|
|
|
'packages/bash',
|
2026-06-13 00:28:29 +08:00
|
|
|
'packages/llm-deepseek',
|
|
|
|
|
'packages/llm-pi-ai',
|
2026-06-12 23:28:44 +08:00
|
|
|
'packages/bash-local',
|
|
|
|
|
'packages/tool-bash',
|
2026-06-13 23:25:12 +08:00
|
|
|
'packages/invariants',
|
2026-06-16 11:10:25 +08:00
|
|
|
'packages/acp',
|
2026-06-19 12:42:28 +08:00
|
|
|
'packages/ui-stdio',
|
|
|
|
|
'packages/llm-replay',
|
2026-06-11 15:04:50 +08:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
const root = resolve(import.meta.dirname, '..')
|
|
|
|
|
for (const path of packages) {
|
|
|
|
|
execFileSync('node_modules/.bin/publint', [path], { cwd: root, stdio: 'inherit' })
|
|
|
|
|
}
|