summaryrefslogtreecommitdiff
path: root/src/bin.mjs
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-02-24 15:47:19 -0300
committerEuAndreh <eu@euandre.org>2024-02-24 15:47:19 -0300
commitd064f5ba5cc2fa592c0e7566560b05e9c4ed65dc (patch)
treefdc89ddd55c375e9a4ac7021375bfbaf48d2c0e7 /src/bin.mjs
parentsrc/hero.mjs: Add buildServer() (diff)
downloadpapod-d064f5ba5cc2fa592c0e7566560b05e9c4ed65dc.tar.gz
papod-d064f5ba5cc2fa592c0e7566560b05e9c4ed65dc.tar.xz
Normalize how modules import and name each other
Also add a `defaultInterceptors` variable in `src/hero.mjs` to avoid needing to redefine it in every application.
Diffstat (limited to 'src/bin.mjs')
-rwxr-xr-xsrc/bin.mjs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin.mjs b/src/bin.mjs
index 5dbbb25..e79904f 100755
--- a/src/bin.mjs
+++ b/src/bin.mjs
@@ -1,4 +1,4 @@
#!/usr/bin/env node
-import { main } from "./api.mjs";
+import * as api from "./api.mjs";
-main();
+api.main();