mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
feat(cli): migrate vibe-rules to ruler (#503)
This commit is contained in:
@@ -2586,6 +2586,31 @@ describe("create-better-t-stack smoke", () => {
|
||||
expect(codegenRes.exitCode).toBe(0);
|
||||
}
|
||||
|
||||
if (scripts["check-types"]) {
|
||||
consola.start(`Type checking ${dirName}...`);
|
||||
try {
|
||||
const typeRes = await runScript(
|
||||
pm,
|
||||
projectDir,
|
||||
"check-types",
|
||||
[],
|
||||
120_000,
|
||||
);
|
||||
if (typeRes.exitCode === 0) {
|
||||
consola.success(`${dirName} type check passed`);
|
||||
} else {
|
||||
consola.warn(
|
||||
`${dirName} type check failed (exit code ${typeRes.exitCode}) - likely due to missing generated files`,
|
||||
);
|
||||
}
|
||||
} catch (error) {
|
||||
consola.warn(
|
||||
`${dirName} type check failed - likely due to missing generated files:`,
|
||||
error.message,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (scripts.build) {
|
||||
consola.start(`Building ${dirName}...`);
|
||||
const isTurbo = existsSync(join(projectDir, "turbo.json"));
|
||||
@@ -2599,18 +2624,9 @@ describe("create-better-t-stack smoke", () => {
|
||||
);
|
||||
expect(buildRes.exitCode).toBe(0);
|
||||
consola.success(`${dirName} built successfully`);
|
||||
} else if (scripts["check-types"]) {
|
||||
consola.start(`Type checking ${dirName}...`);
|
||||
const typeRes = await runScript(
|
||||
pm,
|
||||
projectDir,
|
||||
"check-types",
|
||||
[],
|
||||
120_000,
|
||||
);
|
||||
expect(typeRes.exitCode).toBe(0);
|
||||
consola.success(`${dirName} type check passed`);
|
||||
} else {
|
||||
}
|
||||
|
||||
if (!scripts.build && !scripts["check-types"]) {
|
||||
consola.info(
|
||||
`No build or check-types script for ${dirName}, skipping`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user