publint-all.ts 682 B

123456789101112131415161718192021222324
  1. import { execFileSync } from 'node:child_process'
  2. import { resolve } from 'node:path'
  3. // publint every publishable package (vendor/ is private upstream code and
  4. // examples/ are not packages; both are out of scope).
  5. const packages = [
  6. 'packages/llm',
  7. 'packages/session',
  8. 'packages/system-prompt',
  9. 'packages/tools',
  10. 'packages/agent',
  11. 'packages/agent-loop',
  12. 'packages/bash',
  13. 'packages/llm-deepseek',
  14. 'packages/llm-pi-ai',
  15. 'packages/bash-local',
  16. 'packages/tool-bash',
  17. 'packages/invariants',
  18. ]
  19. const root = resolve(import.meta.dirname, '..')
  20. for (const path of packages) {
  21. execFileSync('node_modules/.bin/publint', [path], { cwd: root, stdio: 'inherit' })
  22. }