(pathToWalk, ext)
| 12 | const dryRun = ['-d', '--dry-run'].includes(process.argv[2]) |
| 13 | |
| 14 | const walkFiles = (pathToWalk, ext) => { |
| 15 | return walk(path.posix.join(process.cwd(), pathToWalk), { |
| 16 | includeBasePath: true, |
| 17 | directories: false, |
| 18 | }).filter((file) => file.endsWith(ext) && !file.endsWith('README.md')) |
| 19 | } |
| 20 | |
| 21 | const markdownFiles = walkFiles('content', '.md').concat(walkFiles('data', '.md')) |
| 22 | const yamlFiles = walkFiles('data', '.yml') |
no outgoing calls
no test coverage detected