@kiran_nandi_123/conxa 1.0.1 → 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.
- package/package.json +2 -1
- package/scripts/install.ps1 +9 -0
- package/scripts/install.sh +26 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiran_nandi_123/conxa",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Conxa CLI — install and manage shared-runtime automation plugins",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"bin/",
|
|
12
12
|
"lib/",
|
|
13
|
+
"scripts/",
|
|
13
14
|
"README.md",
|
|
14
15
|
"LICENSE"
|
|
15
16
|
],
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
param([Parameter(Mandatory)][string]$PluginId)
|
|
2
|
+
|
|
3
|
+
if (-not (Get-Command node -ErrorAction SilentlyContinue)) {
|
|
4
|
+
Write-Host "[conxa] Node.js not found — installing via winget..."
|
|
5
|
+
winget install -e --id OpenJS.NodeJS.LTS --accept-package-agreements --accept-source-agreements
|
|
6
|
+
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
npx -y "@kiran_nandi_123/conxa" install $PluginId
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -e
|
|
3
|
+
|
|
4
|
+
PLUGIN_ID="${1:-}"
|
|
5
|
+
|
|
6
|
+
if [ -z "$PLUGIN_ID" ]; then
|
|
7
|
+
echo "Usage: curl -fsSL https://cdn.jsdelivr.net/npm/@kiran_nandi_123/conxa/scripts/install.sh | bash -s -- <plugin-id>"
|
|
8
|
+
exit 1
|
|
9
|
+
fi
|
|
10
|
+
|
|
11
|
+
if ! command -v node &>/dev/null; then
|
|
12
|
+
echo "[conxa] Node.js not found — installing..."
|
|
13
|
+
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
14
|
+
if command -v brew &>/dev/null; then
|
|
15
|
+
brew install node
|
|
16
|
+
else
|
|
17
|
+
echo "[conxa] Homebrew not found. Install it first: https://brew.sh"
|
|
18
|
+
exit 1
|
|
19
|
+
fi
|
|
20
|
+
else
|
|
21
|
+
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
|
|
22
|
+
sudo apt-get install -y nodejs
|
|
23
|
+
fi
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
npx -y @kiran_nandi_123/conxa install "$PLUGIN_ID"
|