(options: WeeklyOptions, draft: WeeklyDraft)
| 237 | } |
| 238 | |
| 239 | function writeWeeklyPacket(options: WeeklyOptions, draft: WeeklyDraft) { |
| 240 | const paths = weeklyPacketPaths(options.to); |
| 241 | mkdirSync(join(ROOT, "updates", "weekly"), { recursive: true }); |
| 242 | mkdirSync(join(ROOT, "updates", "social"), { recursive: true }); |
| 243 | |
| 244 | writeFile(paths.weeklyNotes, draft.weeklyNotes, options.force); |
| 245 | writeFile(paths.discordDraft, draft.discordDraft, options.force); |
| 246 | writeFile(paths.xDraft, draft.xDraft, options.force); |
| 247 | } |
| 248 | |
| 249 | export function weeklyPacketPaths(date: string) { |
| 250 | return { |
no test coverage detected