command-list.ts 300 B

123456789
  1. import { basename } from 'node:path'
  2. import { getRecursiveFileList } from './get-recursive-file-list'
  3. export function commandList(path: string) {
  4. const files = getRecursiveFileList(path).filter((file) => basename(file) === 'package.json')
  5. for (const file of files) {
  6. console.log(file)
  7. }
  8. }