@jmylchreest/aide-plugin 0.0.45 → 0.0.46
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/bin/aide-wrapper.sh +8 -2
- package/package.json +1 -1
package/bin/aide-wrapper.sh
CHANGED
|
@@ -126,9 +126,15 @@ if [[ "$NEEDS_DOWNLOAD" == "true" ]]; then
|
|
|
126
126
|
log "Downloading binary..."
|
|
127
127
|
log "Using downloader: $DOWNLOADER"
|
|
128
128
|
|
|
129
|
-
# Use tsx for .ts files (dev), node for .js files (npm install)
|
|
129
|
+
# Use bun/tsx for .ts files (dev), node for .js files (npm install)
|
|
130
130
|
if [[ "$DOWNLOADER" == *.ts ]]; then
|
|
131
|
-
|
|
131
|
+
if command -v bun &>/dev/null; then
|
|
132
|
+
RUNNER="bun"
|
|
133
|
+
elif command -v tsx &>/dev/null; then
|
|
134
|
+
RUNNER="tsx"
|
|
135
|
+
else
|
|
136
|
+
RUNNER="npx --yes tsx"
|
|
137
|
+
fi
|
|
132
138
|
else
|
|
133
139
|
RUNNER="node"
|
|
134
140
|
fi
|
package/package.json
CHANGED