mogobase 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/dev/start.js +3 -1
- package/package.json +2 -1
package/lib/dev/start.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { serve } from "@hono/node-server";
|
|
2
2
|
import app from "../server/hono.js";
|
|
3
3
|
import path from "path";
|
|
4
|
-
import ws from "../server/ws.js";
|
|
5
4
|
import fs from "fs";
|
|
5
|
+
import ws from "../server/ws.js";
|
|
6
|
+
import { config } from "dotenv";
|
|
6
7
|
const cwd = process.cwd();
|
|
7
8
|
const mogobaseFolder = path.resolve(cwd, "./mogobase");
|
|
9
|
+
config({ path: [path.join(cwd, ".env"), path.join(cwd, ".env.local")] });
|
|
8
10
|
let server;
|
|
9
11
|
const port = Number(process.env.MOGOBASE_PORT) || 4000;
|
|
10
12
|
const files = fs.readdirSync(mogobaseFolder);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mogobase",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "types/index.d.ts",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"@hono/node-server": "^1.19.7",
|
|
42
42
|
"@hono/node-ws": "^1.3.0",
|
|
43
43
|
"dataloader": "^2.2.3",
|
|
44
|
+
"dotenv": "^17.2.3",
|
|
44
45
|
"hono": "^4.11.3",
|
|
45
46
|
"lodash.merge": "^4.6.2",
|
|
46
47
|
"make-cli": "^6.0.0",
|