sandymount 0.0.4 → 0.0.6
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/sandymount.js +9 -2
- package/package.json +2 -2
package/bin/sandymount.js
CHANGED
|
@@ -11,11 +11,16 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { spawn } from 'child_process';
|
|
14
|
+
import { fileURLToPath } from 'url';
|
|
15
|
+
import { dirname, join } from 'path';
|
|
16
|
+
|
|
17
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
18
|
+
const __dirname = dirname(__filename);
|
|
14
19
|
|
|
15
20
|
const args = process.argv.slice(2);
|
|
16
21
|
const command = args[0];
|
|
17
22
|
|
|
18
|
-
const VERSION = '0.0.
|
|
23
|
+
const VERSION = '0.0.6';
|
|
19
24
|
const DEFAULT_PORT = 5420;
|
|
20
25
|
|
|
21
26
|
function showHelp() {
|
|
@@ -74,7 +79,9 @@ function startServer(startArgs) {
|
|
|
74
79
|
console.log('🏖️ Starting Sandymount...');
|
|
75
80
|
console.log('');
|
|
76
81
|
|
|
77
|
-
|
|
82
|
+
// Find jss binary - try local node_modules first, then global
|
|
83
|
+
const localJss = join(__dirname, '..', 'node_modules', '.bin', 'jss');
|
|
84
|
+
const jss = spawn(localJss, jssArgs, { stdio: 'inherit' });
|
|
78
85
|
|
|
79
86
|
jss.on('error', (err) => {
|
|
80
87
|
if (err.code === 'ENOENT') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sandymount",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "SAND Stack: Solid + ActivityPub + Nostr + DID — Personal sovereignty in one command",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://sandy-mount.com",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"javascript-solid-server": "^0.0.
|
|
36
|
+
"javascript-solid-server": "^0.0.67"
|
|
37
37
|
}
|
|
38
38
|
}
|