mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
add express, automated mongodb atlas setup, fix stack architech
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
import { $ } from "execa";
|
||||
import fs from "fs-extra";
|
||||
import pc from "picocolors";
|
||||
import { commandExists } from "../utils/command-exists";
|
||||
|
||||
type TursoConfig = {
|
||||
dbUrl: string;
|
||||
@@ -26,12 +27,7 @@ type TursoGroup = {
|
||||
};
|
||||
|
||||
async function isTursoInstalled() {
|
||||
try {
|
||||
const result = await $`turso --version`;
|
||||
return result.exitCode === 0;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
return commandExists("turso");
|
||||
}
|
||||
|
||||
async function isTursoLoggedIn() {
|
||||
|
||||
Reference in New Issue
Block a user