mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-01-11 19:56:44 +00:00
feat: add setup function for ts-node installation in configure script
This commit is contained in:
parent
8d9f7e125d
commit
2f43bc5c65
1 changed files with 9 additions and 3 deletions
12
configure.sh
12
configure.sh
|
|
@ -159,6 +159,13 @@ clone_oneuptime() {
|
|||
fi
|
||||
}
|
||||
|
||||
setup_tsnode() {
|
||||
if ! command_exists ts-node; then
|
||||
print_info "Installing ts-node..."
|
||||
sudo npm install -g ts-node
|
||||
fi
|
||||
}
|
||||
|
||||
# Main installation process
|
||||
main() {
|
||||
print_info "Welcome to the OneUptime 🟢 Runner"
|
||||
|
|
@ -173,9 +180,8 @@ main() {
|
|||
setup_nodejs
|
||||
setup_docker
|
||||
setup_gomplate
|
||||
|
||||
print_info "Installing ts-node globally..."
|
||||
sudo npm install -g ts-node
|
||||
setup_tsnode
|
||||
|
||||
|
||||
clone_oneuptime
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue