@lizard-build/cli 4.0.24 → 4.0.25
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/dist/lib/updater.d.ts +1 -1
- package/dist/lib/updater.js +1 -1
- package/install.sh +26 -1
- package/package.json +1 -1
- package/src/lib/updater.ts +1 -1
package/dist/lib/updater.d.ts
CHANGED
package/dist/lib/updater.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Readable } from "node:stream";
|
|
|
4
4
|
import { join, dirname } from "node:path";
|
|
5
5
|
import os from "node:os";
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
7
|
-
export const CURRENT_VERSION = "4.0.
|
|
7
|
+
export const CURRENT_VERSION = "4.0.25";
|
|
8
8
|
const RELEASES_API = "https://api.github.com/repos/lizard-build/lizard-cli/releases/latest";
|
|
9
9
|
const RELEASE_BASE = "https://github.com/lizard-build/lizard-cli/releases/latest/download";
|
|
10
10
|
/** Minimum gap between background update checks. */
|
package/install.sh
CHANGED
|
@@ -70,6 +70,26 @@ esac
|
|
|
70
70
|
if [ -n "$SHELL_RC" ] && ! grep -q "\.lizard/bin" "$SHELL_RC" 2>/dev/null; then
|
|
71
71
|
echo 'export PATH="$HOME/.lizard/bin:$PATH"' >> "$SHELL_RC"
|
|
72
72
|
fi
|
|
73
|
+
|
|
74
|
+
# Coding agents and terminals that are already open keep the PATH they started
|
|
75
|
+
# with, so they see ~/.lizard/bin only in new shells. Link lizard into a
|
|
76
|
+
# directory that is already on PATH and writable without sudo, so it works
|
|
77
|
+
# right away. Skip a directory that holds some other lizard, such as npm's.
|
|
78
|
+
LINK=""
|
|
79
|
+
for dir in "$HOME/.local/bin" "$HOME/bin" /opt/homebrew/bin /usr/local/bin; do
|
|
80
|
+
case ":$PATH:" in *":$dir:"*) ;; *) continue ;; esac
|
|
81
|
+
[ -d "$dir" ] && [ -w "$dir" ] || continue
|
|
82
|
+
if [ -e "$dir/lizard" ] || [ -L "$dir/lizard" ]; then
|
|
83
|
+
[ "$(readlink "$dir/lizard")" = "$INSTALL_DIR/lizard" ] || continue
|
|
84
|
+
fi
|
|
85
|
+
if ln -sf "$INSTALL_DIR/lizard" "$dir/lizard" 2>/dev/null; then
|
|
86
|
+
LINK="$dir/lizard"
|
|
87
|
+
break
|
|
88
|
+
fi
|
|
89
|
+
done
|
|
90
|
+
|
|
91
|
+
# The lizard that the caller's shell will actually run.
|
|
92
|
+
FOUND="$(command -v lizard 2>/dev/null || true)"
|
|
73
93
|
export PATH="$INSTALL_DIR:$PATH"
|
|
74
94
|
|
|
75
95
|
# `lizard version` is not a command — the flag is the only way to read it.
|
|
@@ -79,5 +99,10 @@ echo ""
|
|
|
79
99
|
echo -e "${GREEN}✓${RESET} Lizard CLI ${BOLD}v${VERSION}${RESET} installed"
|
|
80
100
|
echo ""
|
|
81
101
|
echo -e " Run ${CYAN}lizard login${RESET} to get started"
|
|
82
|
-
|
|
102
|
+
if [ -n "$FOUND" ] && [ "$FOUND" != "$LINK" ] && [ "$FOUND" != "$INSTALL_DIR/lizard" ]; then
|
|
103
|
+
echo -e " ${RED}Note:${RESET} another lizard comes first on your PATH: $FOUND"
|
|
104
|
+
echo -e " ${DIM}If it is the npm package, remove it: npm uninstall -g @lizard-build/cli${RESET}"
|
|
105
|
+
elif [ -z "$LINK" ]; then
|
|
106
|
+
echo -e " ${DIM}(if 'lizard' is not found, open a new terminal or run: export PATH=\"\$HOME/.lizard/bin:\$PATH\")${RESET}"
|
|
107
|
+
fi
|
|
83
108
|
echo ""
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lizard-build/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.25",
|
|
4
4
|
"description": "Lizard CLI — deploy apps, databases and sandboxes to Lizard (lizard.build) from your terminal or your coding agent. Detects Go, Node, Python, Rust, Ruby, PHP, Java and static sites; adds Managed Postgres, Managed Redis and Managed Object Storage in one command.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/lib/updater.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { join, dirname } from "node:path";
|
|
|
5
5
|
import os from "node:os";
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
7
7
|
|
|
8
|
-
export const CURRENT_VERSION = "4.0.
|
|
8
|
+
export const CURRENT_VERSION = "4.0.25";
|
|
9
9
|
const RELEASES_API = "https://api.github.com/repos/lizard-build/lizard-cli/releases/latest";
|
|
10
10
|
const RELEASE_BASE = "https://github.com/lizard-build/lizard-cli/releases/latest/download";
|
|
11
11
|
|