src.nth.io/

summaryrefslogtreecommitdiff
path: root/src/cli.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.ts')
-rw-r--r--src/cli.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cli.ts b/src/cli.ts
new file mode 100644
index 0000000..c3579d7
--- /dev/null
+++ b/src/cli.ts
@@ -0,0 +1,9 @@
+#!/usr/bin/env node
+/**
+ * Entry point. The warning filter must be installed before matter.js loads
+ * (its import graph reaches node:sqlite, whose ExperimentalWarning fires at
+ * module load). Static imports are hoisted and evaluated before any code
+ * runs, so the program body is loaded dynamically after the filter.
+ */
+import "./warnings.js";
+await import("./main.js");