aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-11-05 12:50:07 +0100
committerFlorian Dold <florian@dold.me>2021-11-05 12:50:07 +0100
commitdc1fce22778273df6946d3b3efd0eb90b285a8dd (patch)
treecf257a2a2f3422343fc53cbfb71b76ca1a33c465 /packages
parent2139cfd707e1cd4d00e0aeeb5717cd3259da0373 (diff)
anastasis-core: cli entry point
Diffstat (limited to 'packages')
-rw-r--r--packages/anastasis-core/src/cli-entry.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/anastasis-core/src/cli-entry.ts b/packages/anastasis-core/src/cli-entry.ts
new file mode 100644
index 000000000..151b47f2b
--- /dev/null
+++ b/packages/anastasis-core/src/cli-entry.ts
@@ -0,0 +1,15 @@
+import { reducerCliMain } from "./cli.js";
+
+async function r() {
+ try {
+ // @ts-ignore
+ (await import("source-map-support")).install();
+ } catch (e) {
+ console.warn("can't load souremaps, please install source-map-support");
+ // Do nothing.
+ }
+
+ reducerCliMain();
+}
+
+r();