zerogterm 0.1.0-alpha.1 → 0.1.0-alpha.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/README.md CHANGED
@@ -37,6 +37,12 @@ npm run build
37
37
  npm start
38
38
  ```
39
39
 
40
+ After installing the published package, launch ZeroG Terminal with:
41
+
42
+ ```bash
43
+ npx zerogterm
44
+ ```
45
+
40
46
  Runtime prerequisites on the host:
41
47
 
42
48
  ```bash
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { spawn } = require('node:child_process');
4
+ const path = require('node:path');
5
+ const electron = require('electron');
6
+
7
+ const packageRoot = path.resolve(__dirname, '..');
8
+ const child = spawn(electron, [packageRoot, ...process.argv.slice(2)], {
9
+ stdio: 'inherit'
10
+ });
11
+
12
+ child.on('error', (error) => {
13
+ console.error(`Failed to start ZeroG Terminal: ${error.message}`);
14
+ process.exitCode = 1;
15
+ });
16
+
17
+ child.on('close', (code, signal) => {
18
+ if (signal) {
19
+ process.kill(process.pid, signal);
20
+ return;
21
+ }
22
+ process.exitCode = code ?? 1;
23
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zerogterm",
3
- "version": "0.1.0-alpha.1",
3
+ "version": "0.1.0-alpha.2",
4
4
  "description": "A Linux-first persistent Electron terminal workspace",
5
5
  "license": "MIT",
6
6
  "author": "Stephen Phillips",
@@ -12,6 +12,9 @@
12
12
  "url": "https://github.com/HappyMonkeyAI/ZeroGTerm/issues"
13
13
  },
14
14
  "homepage": "https://github.com/HappyMonkeyAI/ZeroGTerm#readme",
15
+ "bin": {
16
+ "zerogterm": "bin/zerogterm.cjs"
17
+ },
15
18
  "keywords": [
16
19
  "electron",
17
20
  "terminal",