Add //time command for m->d scheduling

This commit is contained in:
Cadence Ember
2026-10-08 02:19:26 +13:00
parent c25b5a19c6
commit b49c6e8fd4
5 changed files with 159 additions and 9 deletions
+5
View File
@@ -1,6 +1,11 @@
#!/usr/bin/env node
// @ts-check
// Temporal API stabilised in Node.js 26. Previous versions can use `--harmony-temporal`, but that's jank, so have a polyfill.
if (!("Temporal" in globalThis)) {
require("temporal-polyfill-lite/global")
}
const fs = require("fs")
const sqlite = require("better-sqlite3")
const migrate = require("./src/db/migrate")