mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
chore(cli): remove manual ultracite package handling
This commit is contained in:
5
.changeset/two-dots-stop.md
Normal file
5
.changeset/two-dots-stop.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"create-better-t-stack": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
remove manual ultracite package handling
|
||||||
@@ -57,7 +57,6 @@ export const dependencyVersionMap = {
|
|||||||
|
|
||||||
"@biomejs/biome": "^2.2.0",
|
"@biomejs/biome": "^2.2.0",
|
||||||
oxlint: "^1.8.0",
|
oxlint: "^1.8.0",
|
||||||
ultracite: "5.1.1",
|
|
||||||
|
|
||||||
husky: "^9.1.7",
|
husky: "^9.1.7",
|
||||||
"lint-staged": "^16.1.2",
|
"lint-staged": "^16.1.2",
|
||||||
|
|||||||
@@ -121,11 +121,6 @@ export async function setupUltracite(config: ProjectConfig, hasHusky: boolean) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
await addPackageDependency({
|
|
||||||
devDependencies: ["ultracite"],
|
|
||||||
projectDir,
|
|
||||||
});
|
|
||||||
|
|
||||||
log.success("Ultracite setup successfully!");
|
log.success("Ultracite setup successfully!");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
log.error(pc.red("Failed to set up Ultracite"));
|
log.error(pc.red("Failed to set up Ultracite"));
|
||||||
|
|||||||
@@ -2586,6 +2586,21 @@ describe("create-better-t-stack smoke", () => {
|
|||||||
expect(codegenRes.exitCode).toBe(0);
|
expect(codegenRes.exitCode).toBe(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (scripts.build) {
|
||||||
|
consola.start(`Building ${dirName}...`);
|
||||||
|
const isTurbo = existsSync(join(projectDir, "turbo.json"));
|
||||||
|
const extraArgs = isTurbo ? ["--force"] : [];
|
||||||
|
const buildRes = await runScript(
|
||||||
|
pm,
|
||||||
|
projectDir,
|
||||||
|
"build",
|
||||||
|
extraArgs,
|
||||||
|
300_000,
|
||||||
|
);
|
||||||
|
expect(buildRes.exitCode).toBe(0);
|
||||||
|
consola.success(`${dirName} built successfully`);
|
||||||
|
}
|
||||||
|
|
||||||
if (scripts["check-types"]) {
|
if (scripts["check-types"]) {
|
||||||
consola.start(`Type checking ${dirName}...`);
|
consola.start(`Type checking ${dirName}...`);
|
||||||
try {
|
try {
|
||||||
@@ -2611,21 +2626,6 @@ describe("create-better-t-stack smoke", () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (scripts.build) {
|
|
||||||
consola.start(`Building ${dirName}...`);
|
|
||||||
const isTurbo = existsSync(join(projectDir, "turbo.json"));
|
|
||||||
const extraArgs = isTurbo ? ["--force"] : [];
|
|
||||||
const buildRes = await runScript(
|
|
||||||
pm,
|
|
||||||
projectDir,
|
|
||||||
"build",
|
|
||||||
extraArgs,
|
|
||||||
300_000,
|
|
||||||
);
|
|
||||||
expect(buildRes.exitCode).toBe(0);
|
|
||||||
consola.success(`${dirName} built successfully`);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!scripts.build && !scripts["check-types"]) {
|
if (!scripts.build && !scripts["check-types"]) {
|
||||||
consola.info(
|
consola.info(
|
||||||
`No build or check-types script for ${dirName}, skipping`,
|
`No build or check-types script for ${dirName}, skipping`,
|
||||||
|
|||||||
Reference in New Issue
Block a user