publint-all.ts 538 B

123456789101112131415161718
  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. ]
  13. const root = resolve(import.meta.dirname, '..')
  14. for (const path of packages) {
  15. execFileSync('node_modules/.bin/publint', [path], { cwd: root, stdio: 'inherit' })
  16. }