remove biome check after installation

This commit is contained in:
Aman Varshney
2025-06-07 19:30:15 +05:30
parent c11e2f174e
commit da16fdcd78
3 changed files with 6 additions and 28 deletions

View File

@@ -0,0 +1,5 @@
---
"create-better-t-stack": patch
---
remove biome check after installation

View File

@@ -75,7 +75,6 @@ export async function createProject(options: ProjectConfig) {
await installDependencies({
projectDir,
packageManager: options.packageManager,
addons: options.addons,
});
}

View File

@@ -1,4 +1,4 @@
import { log, spinner } from "@clack/prompts";
import { spinner } from "@clack/prompts";
import consola from "consola";
import { $ } from "execa";
import pc from "picocolors";
@@ -7,7 +7,6 @@ import type { Addons, PackageManager } from "../../types";
export async function installDependencies({
projectDir,
packageManager,
addons = [],
}: {
projectDir: string;
packageManager: PackageManager;
@@ -24,10 +23,6 @@ export async function installDependencies({
})`${packageManager} install`;
s.stop("Dependencies installed successfully");
if (addons.includes("biome") || addons.includes("husky")) {
await runBiomeCheck(projectDir, packageManager);
}
} catch (error) {
s.stop(pc.red("Failed to install dependencies"));
if (error instanceof Error) {
@@ -35,24 +30,3 @@ export async function installDependencies({
}
}
}
async function runBiomeCheck(
projectDir: string,
packageManager: PackageManager,
) {
const s = spinner();
try {
s.start("Running Biome format check...");
await $({
cwd: projectDir,
stderr: "inherit",
})`${packageManager} biome check --write .`;
s.stop("Biome check completed successfully");
} catch (_error) {
s.stop(pc.yellow("Biome check encountered issues"));
log.warn(pc.yellow("Some files may need manual formatting"));
}
}