()
| 41 | } |
| 42 | |
| 43 | function readReadmeCommandKeys(): Set<string> { |
| 44 | const text = readFileSync(README_PATH, "utf8"); |
| 45 | const keys = new Set<string>(); |
| 46 | |
| 47 | for (const match of text.matchAll(/\|\s*`bun run\s+([^`]+)`\s*\|/gu)) { |
| 48 | const key = match[1]?.trim(); |
| 49 | |
| 50 | if (key !== undefined && key.length > 0) { |
| 51 | keys.add(key); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | return keys; |
| 56 | } |
| 57 | |
| 58 | function main(): void { |
| 59 | const wired = readPackageScriptKeys(); |