Skip to content

Commit ffe59ac

Browse files
chore(cli): remove manual ultracite package handling
1 parent 0e53b9b commit ffe59ac

File tree

4 files changed

+20
-21
lines changed

4 files changed

+20
-21
lines changed

.changeset/two-dots-stop.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 manual ultracite package handling

apps/cli/src/constants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ export const dependencyVersionMap = {
5757

5858
"@biomejs/biome": "^2.2.0",
5959
oxlint: "^1.8.0",
60-
ultracite: "5.1.1",
6160

6261
husky: "^9.1.7",
6362
"lint-staged": "^16.1.2",

apps/cli/src/helpers/setup/ultracite-setup.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,6 @@ export async function setupUltracite(config: ProjectConfig, hasHusky: boolean) {
121121
});
122122
}
123123

124-
await addPackageDependency({
125-
devDependencies: ["ultracite"],
126-
projectDir,
127-
});
128-
129124
log.success("Ultracite setup successfully!");
130125
} catch (error) {
131126
log.error(pc.red("Failed to set up Ultracite"));

apps/cli/test/cli.smoke.test.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2586,6 +2586,21 @@ describe("create-better-t-stack smoke", () => {
25862586
expect(codegenRes.exitCode).toBe(0);
25872587
}
25882588

2589+
if (scripts.build) {
2590+
consola.start(`Building ${dirName}...`);
2591+
const isTurbo = existsSync(join(projectDir, "turbo.json"));
2592+
const extraArgs = isTurbo ? ["--force"] : [];
2593+
const buildRes = await runScript(
2594+
pm,
2595+
projectDir,
2596+
"build",
2597+
extraArgs,
2598+
300_000,
2599+
);
2600+
expect(buildRes.exitCode).toBe(0);
2601+
consola.success(`${dirName} built successfully`);
2602+
}
2603+
25892604
if (scripts["check-types"]) {
25902605
consola.start(`Type checking ${dirName}...`);
25912606
try {
@@ -2611,21 +2626,6 @@ describe("create-better-t-stack smoke", () => {
26112626
}
26122627
}
26132628

2614-
if (scripts.build) {
2615-
consola.start(`Building ${dirName}...`);
2616-
const isTurbo = existsSync(join(projectDir, "turbo.json"));
2617-
const extraArgs = isTurbo ? ["--force"] : [];
2618-
const buildRes = await runScript(
2619-
pm,
2620-
projectDir,
2621-
"build",
2622-
extraArgs,
2623-
300_000,
2624-
);
2625-
expect(buildRes.exitCode).toBe(0);
2626-
consola.success(`${dirName} built successfully`);
2627-
}
2628-
26292629
if (!scripts.build && !scripts["check-types"]) {
26302630
consola.info(
26312631
`No build or check-types script for ${dirName}, skipping`,

0 commit comments

Comments
 (0)