Skip to content

Commit da16fdc

Browse files
remove biome check after installation
1 parent c11e2f1 commit da16fdc

File tree

3 files changed

+6
-28
lines changed

3 files changed

+6
-28
lines changed

.changeset/spicy-lamps-check.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-better-t-stack": patch
3+
---
4+
5+
remove biome check after installation

apps/cli/src/helpers/project-generation/create-project.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ export async function createProject(options: ProjectConfig) {
7575
await installDependencies({
7676
projectDir,
7777
packageManager: options.packageManager,
78-
addons: options.addons,
7978
});
8079
}
8180

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { log, spinner } from "@clack/prompts";
1+
import { spinner } from "@clack/prompts";
22
import consola from "consola";
33
import { $ } from "execa";
44
import pc from "picocolors";
@@ -7,7 +7,6 @@ import type { Addons, PackageManager } from "../../types";
77
export async function installDependencies({
88
projectDir,
99
packageManager,
10-
addons = [],
1110
}: {
1211
projectDir: string;
1312
packageManager: PackageManager;
@@ -24,35 +23,10 @@ export async function installDependencies({
2423
})`${packageManager} install`;
2524

2625
s.stop("Dependencies installed successfully");
27-
28-
if (addons.includes("biome") || addons.includes("husky")) {
29-
await runBiomeCheck(projectDir, packageManager);
30-
}
3126
} catch (error) {
3227
s.stop(pc.red("Failed to install dependencies"));
3328
if (error instanceof Error) {
3429
consola.error(pc.red(`Installation error: ${error.message}`));
3530
}
3631
}
3732
}
38-
39-
async function runBiomeCheck(
40-
projectDir: string,
41-
packageManager: PackageManager,
42-
) {
43-
const s = spinner();
44-
45-
try {
46-
s.start("Running Biome format check...");
47-
48-
await $({
49-
cwd: projectDir,
50-
stderr: "inherit",
51-
})`${packageManager} biome check --write .`;
52-
53-
s.stop("Biome check completed successfully");
54-
} catch (_error) {
55-
s.stop(pc.yellow("Biome check encountered issues"));
56-
log.warn(pc.yellow("Some files may need manual formatting"));
57-
}
58-
}

0 commit comments

Comments
 (0)