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