fix: resolve Paseo CLI via npm prefix fallback in Sprites and use bash -c for exec
- Add RESOLVE_PASEO_BIN_SNIPPET to locate paseo via npm prefix -g and symlink into ~/.local/bin for subsequent calls - Switch Sprite exec from bash -lc to bash -c so PATH_PREAMBLE exports and node version shims apply to already-sourced shells - Surface npm prefix and install log tail when binary still missing - Add justfile with plugin install/reload/logs recipes
This commit is contained in:
1 parent
36d88ef168
commit
2ded63183b
2 files changed
+61
-7
No files matched your search
@@ -0,0 +1,31 @@
|
||||
plugin_id := "fly-sprites-workers"
|
||||
plugin_dir := justfile_directory()
|
||||
|
||||
default:
|
||||
@just --list
|
||||
|
||||
# Install dependencies, typecheck, and install or reload the plugin in Paseo
|
||||
install:
|
||||
npm install
|
||||
npm run typecheck
|
||||
@if paseo plugin ls {{plugin_id}} >/dev/null 2>&1; then \
|
||||
paseo plugin reload {{plugin_id}} || paseo plugin enable {{plugin_id}}; \
|
||||
else \
|
||||
paseo plugin install "{{plugin_dir}}"; \
|
||||
fi
|
||||
|
||||
# Typecheck TypeScript sources
|
||||
typecheck:
|
||||
npm run typecheck
|
||||
|
||||
# Reload the plugin in Paseo
|
||||
reload:
|
||||
paseo plugin reload {{plugin_id}}
|
||||
|
||||
# Show recent plugin logs from Paseo
|
||||
logs:
|
||||
paseo plugin logs {{plugin_id}}
|
||||
|
||||
# Remove the plugin from Paseo
|
||||
uninstall:
|
||||
paseo plugin remove {{plugin_id}}
|
||||
Reference in new issue
Block a user