ework-web 0.9.0 → 0.9.1
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 +1 -1
- package/src/daemon-deploy.ts +6 -1
package/package.json
CHANGED
package/src/daemon-deploy.ts
CHANGED
|
@@ -81,7 +81,12 @@ function buildSetupScript(envBlock: string): string {
|
|
|
81
81
|
return [
|
|
82
82
|
"set -e",
|
|
83
83
|
`command -v npm >/dev/null 2>&1 || { curl -fsSL https://deb.nodesource.com/setup_22.x | sudo bash -; sudo apt-get install -y nodejs; }`,
|
|
84
|
-
`command -v bun >/dev/null 2>&1 || { curl -fsSL https://bun.sh/install | bash;
|
|
84
|
+
`command -v bun >/dev/null 2>&1 || { curl -fsSL https://bun.sh/install | bash; }`,
|
|
85
|
+
`export BUN_INSTALL="$HOME/.bun"`,
|
|
86
|
+
`export PATH="$HOME/.local/lib/bin:$BUN_INSTALL/bin:$PATH"`,
|
|
87
|
+
`mkdir -p "$HOME/.local/lib"`,
|
|
88
|
+
`npm config set prefix "$HOME/.local/lib"`,
|
|
89
|
+
`grep -q '.local/lib/bin' "$HOME/.bashrc" 2>/dev/null || echo 'export PATH="$HOME/.local/lib/bin:$HOME/.bun/bin:$PATH"' >> "$HOME/.bashrc"`,
|
|
85
90
|
`npm install -g ework-aio`,
|
|
86
91
|
`mkdir -p ~/.local/share/ework-aio/ework-daemon`,
|
|
87
92
|
`cat > ~/.local/share/ework-aio/ework-daemon/.env <<'EWORK_DAEMON_ENV_EOF'`,
|