Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Check for plugins better
  • Loading branch information
levkk committed Oct 2, 2023
commit ba035a5439af47b79eb459b95dd9c97562fb279e
2 changes: 1 addition & 1 deletion pgml-apps/cargo-pgml-components/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pgml-apps/cargo-pgml-components/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-pgml-components"
version = "0.1.16"
version = "0.1.17"
edition = "2021"
authors = ["PostgresML <team@postgresml.org>"]
license = "MIT"
Expand Down
3 changes: 1 addition & 2 deletions pgml-apps/cargo-pgml-components/src/frontend/nvm.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion

${@}
exec ${@}
6 changes: 3 additions & 3 deletions pgml-apps/cargo-pgml-components/src/frontend/tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ pub fn install() {

for plugin in ROLLUP_PLUGINS {
if execute_with_nvm(
Command::new("rollup")
.arg("-p")
Command::new("npm")
.arg("list")
.arg("-g")
.arg(plugin)
.arg("--version"),
)
.is_err()
{
Expand Down