miolo 2.0.0-beta.6 → 2.0.0-beta.8
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/bin/restart.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import start from "./start.mjs"
|
|
2
2
|
import stop from "./stop.mjs"
|
|
3
3
|
|
|
4
|
-
export default async function(appName, dest, serverName) {
|
|
4
|
+
export default async function({appName, dest, serverName}) {
|
|
5
5
|
console.log(`[${appName}][prod][stop] Restarting server...`)
|
|
6
6
|
|
|
7
|
-
await stop(appName)
|
|
8
|
-
await start(appName, dest, serverName)
|
|
7
|
+
await stop({appName})
|
|
8
|
+
await start({appName, dest, serverName})
|
|
9
9
|
|
|
10
10
|
}
|
package/bin/start.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path from 'node:path'
|
|
2
2
|
import { pidFileCreate } from "./util.mjs"
|
|
3
3
|
|
|
4
|
-
export default async function(appName, dest, serverName) {
|
|
4
|
+
export default async function({appName, dest, serverName}) {
|
|
5
5
|
// if (! fs.existsSync(CLI_DEST_MAIN)) {
|
|
6
6
|
// console.error(`[${appName}][prod][start] Cannot start server (prod): CLI bundle does not exist ${CLI_DEST_MAIN}`)
|
|
7
7
|
// return
|
package/bin/stop.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "miolo",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.8",
|
|
4
4
|
"description": "all-in-one koa-based server",
|
|
5
5
|
"author": "Donato Lorenzo <donato@afialapis.com>",
|
|
6
6
|
"contributors": [
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"@koa/cors": "^5.0.0",
|
|
74
74
|
"@koa/router": "^13.1.0",
|
|
75
75
|
"@maxmind/geoip2-node": "^6.0.0",
|
|
76
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
76
77
|
"cacheiro": "^0.4.0",
|
|
77
78
|
"calustra": "^0.15.0",
|
|
78
79
|
"cron": "^4.1.4",
|
|
@@ -97,25 +98,18 @@
|
|
|
97
98
|
"socket.io": "^4.8.1",
|
|
98
99
|
"socket.io-client": "^4.8.1",
|
|
99
100
|
"tinguir": "^0.0.7",
|
|
101
|
+
"vite": "^6.2.5",
|
|
100
102
|
"winston": "^3.17.0",
|
|
101
103
|
"winston-daily-rotate-file": "^5.0.0",
|
|
102
|
-
"yargs-parser": "^21.1.1"
|
|
104
|
+
"yargs-parser": "^21.1.1",
|
|
105
|
+
"xeira": "^1.1.9"
|
|
103
106
|
},
|
|
104
107
|
"peerDependencies": {
|
|
105
108
|
"react": "^18.3.1",
|
|
106
109
|
"react-dom": "^18.3.1"
|
|
107
110
|
},
|
|
108
111
|
"devDependencies": {
|
|
109
|
-
"
|
|
110
|
-
"@babel/preset-env": "7.26.9",
|
|
111
|
-
"@babel/preset-react": "7.26.3",
|
|
112
|
-
"@babel/register": "7.25.9",
|
|
113
|
-
"@vitejs/plugin-react": "^4.3.4",
|
|
114
|
-
"babel-plugin-transform-import-meta": "^2.3.2",
|
|
115
|
-
"esbuild": "^0.25.2",
|
|
116
|
-
"node-fetch": "^3.3.2",
|
|
117
|
-
"vite": "^6.2.5",
|
|
118
|
-
"xeira": "^1.1.9"
|
|
112
|
+
"node-fetch": "^3.3.2"
|
|
119
113
|
},
|
|
120
114
|
"eslintConfig": {
|
|
121
115
|
"extends": [
|