openlearn-next 0.1.0 → 0.1.2
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/cli.mjs +0 -3
- package/cli.sh +2 -0
- package/package.json +3 -2
package/cli.mjs
CHANGED
|
@@ -8,7 +8,6 @@ import os from 'node:os';
|
|
|
8
8
|
|
|
9
9
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
10
10
|
|
|
11
|
-
// ── CLI args ───────────────────────────────────────────────────────
|
|
12
11
|
const args = process.argv.slice(2);
|
|
13
12
|
let port = null;
|
|
14
13
|
|
|
@@ -30,7 +29,6 @@ Environment:
|
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
|
|
33
|
-
// ── Env setup ──────────────────────────────────────────────────────
|
|
34
32
|
if (port) process.env.PORT = port;
|
|
35
33
|
|
|
36
34
|
if (!process.env.OPENLEARN_DB_PATH) {
|
|
@@ -42,7 +40,6 @@ if (!process.env.OPENLEARN_DB_PATH) {
|
|
|
42
40
|
console.log(`[openlearn-next] PORT=${process.env.PORT || '9000'}`);
|
|
43
41
|
console.log(`[openlearn-next] DB=${process.env.OPENLEARN_DB_PATH}`);
|
|
44
42
|
|
|
45
|
-
// ── Start server ───────────────────────────────────────────────────
|
|
46
43
|
const serverPath = join(__dirname, 'dist', 'server.cjs');
|
|
47
44
|
const child = spawn('node', [serverPath], {
|
|
48
45
|
stdio: 'inherit',
|
package/cli.sh
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openlearn-next",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "npx tsx --no-cache server.ts",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@vitejs/plugin-react": "^5.0.4"
|
|
79
79
|
},
|
|
80
80
|
"bin": {
|
|
81
|
-
"openlearn-next": "
|
|
81
|
+
"openlearn-next": "cli.sh"
|
|
82
82
|
},
|
|
83
83
|
"files": [
|
|
84
84
|
"dist/index.html",
|
|
@@ -86,6 +86,7 @@
|
|
|
86
86
|
"dist/assets/",
|
|
87
87
|
"dist/plugins/",
|
|
88
88
|
"cli.mjs",
|
|
89
|
+
"cli.sh",
|
|
89
90
|
"package.json",
|
|
90
91
|
"README.md"
|
|
91
92
|
],
|