Comparing version 1.0.2 to 1.0.3
@@ -7,3 +7,3 @@ const figlet = require('figlet') | ||
import ora from 'ora'; | ||
const { isMac, REPO_LINK } = require('./utils') | ||
const { isMac, isWindows, isLinux, REPO_LINK } = require('./utils') | ||
@@ -52,5 +52,7 @@ | ||
spin.start(`Installing Pods into ${name}/ios/Pods`) | ||
const installedPods = await installingPods(name) | ||
spin.succeed('Pods Installed') | ||
if(isMac){ | ||
spin.start(`Installing Pods into ${name}/ios/Pods`) | ||
const installedPods = await installingPods(name) | ||
spin.succeed('Pods Installed') | ||
} | ||
@@ -65,7 +67,22 @@ spin.start(`Moving into ${name}`) | ||
} | ||
try { | ||
spin.start(`opening ${name} `) | ||
if(isMac || isLinux){ | ||
await execa('open', ['.']) | ||
spin.succeed('Completed') | ||
return | ||
} | ||
if(isWindows){ | ||
require('child_process').exec(`start "" "${name}"`) | ||
spin.succeed('Completed') | ||
return | ||
} | ||
spin.start(`opening ${name} `) | ||
await execa('open', ['.']) | ||
spin.succeed('Completed') | ||
}catch(err){ | ||
spin.fail(`Failed to open ${name}`,err) | ||
} | ||
figlet('RIGEL', function (err, data) { | ||
@@ -72,0 +89,0 @@ if (err) { |
@@ -9,3 +9,3 @@ { | ||
}, | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"license": "MIT", | ||
@@ -12,0 +12,0 @@ "dependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27081
748
1