starlight-cli 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/install.js +3 -6
  2. package/package.json +1 -1
package/install.js CHANGED
@@ -2,7 +2,7 @@
2
2
  const https = require('https');
3
3
  const fs = require('fs');
4
4
  const path = require('path');
5
- const { spawn, execSync } = require('child_process');
5
+ const { execSync } = require('child_process');
6
6
 
7
7
  const DOWNLOAD_URL =
8
8
  'https://github.com/developerdominex/dominexmacedon/releases/download/programming/starlight.exe';
@@ -55,11 +55,8 @@ function download(url, dest) {
55
55
  process.env.PATH = `${INSTALL_DIR};${process.env.PATH}`;
56
56
  console.log('PATH updated for current session.');
57
57
 
58
- // Spawn starlight.exe with CLI arguments
59
- const args = process.argv.slice(2);
60
- const starlightProcess = spawn(EXE_PATH, args, { stdio: 'inherit', shell: true });
61
-
62
- starlightProcess.on('exit', code => process.exit(code));
58
+ console.log('Starlight installation completed successfully!');
59
+ process.exit(0);
63
60
  } catch (err) {
64
61
  console.error('Download or installation failed:', err.message);
65
62
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starlight-cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Starlight Programming Language CLI",
5
5
  "bin": {
6
6
  "starlight": "index.js"