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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ework-web",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "type": "module",
5
5
  "description": "ework-web — standalone multi-project issue tracker. Local SQLite-backed, no external API dependency. Bun + TypeScript + SSR HTML.",
6
6
  "license": "MIT",
@@ -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; export BUN_INSTALL="$HOME/.bun"; export PATH="$BUN_INSTALL/bin:$PATH"; }`,
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'`,