chore: remove type-gen script

This commit is contained in:
Steven
2024-02-05 20:42:01 +08:00
parent e35225ff24
commit ba460382b0
6 changed files with 3 additions and 29 deletions

View File

@ -73,11 +73,7 @@ if (!$?) {
Write-Host "Frontend built!" -f green
}
Write-Host "`nGenerating buf types..." -f DarkYellow
$frontendTime = Measure-Command {
&pnpm type-gen | Out-Host
}
if (!$?) {
f (!$?) {
Write-Host -BackgroundColor red -ForegroundColor white "Could not generate buf types. See above."
Exit 1
} else {

View File

@ -74,14 +74,6 @@ if [ $? -ne 0 ]; then
fi
echo -e "\033[32mFrontend dependencies installed!\033[0m"
echo -e "\n\033[33mGenerating buf types...\033[0m"
pnpm type-gen
if [ $? -ne 0 ]; then
echo -e "\033[0;31mCould not generate buf types! Exiting.\033[0m"
exit 1
fi
echo -e "\033[32mbuf types generated!\033[0m"
echo -e "\n\033[33mBuilding frontend...\033[0m"
pnpm build
if [ $? -ne 0 ]; then

View File

@ -28,16 +28,6 @@ $runTasks = @(
Dir = "$repoRoot/web"
Wait = $true;
},
@{
Desc = "generate buf types";
Exe = "powershell.exe";
Args = (
"-Command",
"pnpm type-gen"
);
Dir = "$repoRoot/web"
Wait = $true;
},
@{
Desc = "start backend with live reload";
Exe = "air.exe";