fix: post installations strings width (#511)

This commit is contained in:
Aman Varshney
2025-08-15 16:29:24 +05:30
committed by GitHub
parent 22773232ae
commit f14ab0f3f1
6 changed files with 114 additions and 957 deletions

15
.autorc
View File

@@ -4,7 +4,9 @@
"npm",
{
"forcePublish": false,
"subPackageChangelogs": true
"subPackageChangelogs": true,
"exact": true,
"monorepoChangelog": true
}
],
"all-contributors",
@@ -17,12 +19,23 @@
"name": "Aman Varshney",
"email": "amanvarshney.work@gmail.com",
"baseBranch": "main",
"prereleaseBranches": ["next"],
"next": {
"message": "🎉 This PR is included in version %NEXT_PATCH_VERSION% of this package. The release is available on [npm](https://www.npmjs.com/package/create-better-t-stack)!"
},
"labels": [
{
"name": "skip-release",
"changelogTitle": "⚠️ Pushed to `main`",
"description": "Skip a release and only update the changelog",
"releaseType": "skip"
},
{
"name": "cli",
"changelogTitle": "🛠️ CLI Changes",
"description": "Changes to the CLI tool",
"releaseType": "patch",
"color": "#0366d6"
}
]
}

View File

@@ -9,7 +9,9 @@ on:
jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
if: >-
!contains(github.event.head_commit.message, 'ci skip') &&
!contains(github.event.head_commit.message, 'skip ci')
steps:
- name: Checkout Code
uses: actions/checkout@v4

View File

@@ -95,14 +95,14 @@ export async function displayPostInstallInstructions(
}
if (isConvex) {
output += `${pc.cyan(`${stepCounter++}.`)} ${runCmd} dev:setup ${pc.dim(
"(this will guide you through Convex project setup)",
output += `${pc.cyan(`${stepCounter++}.`)} ${runCmd} dev:setup\n${pc.dim(
" (this will guide you through Convex project setup)",
)}\n`;
output += `${pc.cyan(
`${stepCounter++}.`,
)} Copy environment variables from ${pc.white(
"packages/backend/.env.local",
)} \nto ${pc.white("apps/*/.env")}\n`;
)} Copy environment variables from\n${pc.white(
" packages/backend/.env.local",
)} to ${pc.white("apps/*/.env")}\n`;
output += `${pc.cyan(`${stepCounter++}.`)} ${runCmd} dev\n\n`;
} else {
if (runtime !== "workers") {
@@ -113,7 +113,7 @@ export async function displayPostInstallInstructions(
if (dbSetup === "d1") {
output += `${pc.yellow(
"IMPORTANT:",
)} Complete D1 database setup first (see Database commands below)\n`;
)} Complete D1 database setup first\n (see Database commands below)\n`;
}
output += `${pc.cyan(`${stepCounter++}.`)} ${runCmd} dev\n`;
output += `${pc.cyan(
@@ -131,7 +131,7 @@ export async function displayPostInstallInstructions(
} else if (!hasNative && !addons?.includes("starlight")) {
output += `${pc.yellow(
"NOTE:",
)} You are creating a backend-only app (no frontend selected)\n`;
)} You are creating a backend-only app\n (no frontend selected)\n`;
}
if (!isConvex) {
@@ -163,7 +163,7 @@ export async function displayPostInstallInstructions(
)}\n\n`;
output += `${pc.bold(
"Like Better-T Stack?",
)} Please consider giving us a star on GitHub:\n`;
)} Please consider giving us a star\n on GitHub:\n`;
output += pc.cyan("https://github.com/AmanVarshney01/create-better-t-stack");
consola.box(output);
@@ -181,12 +181,12 @@ function getNativeInstructions(isConvex: boolean): string {
let instructions = `${pc.yellow(
"NOTE:",
)} For Expo connectivity issues, update apps/native/${envFileName} \nwith ${ipNote}:\n${`${envVar}=${exampleUrl}`}\n`;
)} For Expo connectivity issues, update\n apps/native/${envFileName} with ${ipNote}:\n ${`${envVar}=${exampleUrl}`}\n`;
if (isConvex) {
instructions += `\n${pc.yellow(
"IMPORTANT:",
)} When using local development with Convex and native apps, ensure you use your local IP address \ninstead of localhost or 127.0.0.1 for proper connectivity.\n`;
)} When using local development with Convex and native apps,\n ensure you use your local IP address instead of localhost or 127.0.0.1\n for proper connectivity.\n`;
}
return instructions;
@@ -257,8 +257,7 @@ async function getDatabaseInstructions(
instructions.push(
`${pc.yellow(
"NOTE:",
)} Turso support with Prisma is in Early Access and requires additional setup.`,
`${"Learn more at: https://www.prisma.io/docs/orm/overview/databases/turso"}`,
)} Turso support with Prisma is in Early Access and requires\n additional setup. Learn more at:\n https://www.prisma.io/docs/orm/overview/databases/turso`,
);
}
@@ -266,7 +265,7 @@ async function getDatabaseInstructions(
instructions.push(
`${pc.yellow(
"WARNING:",
)} Prisma + MongoDB + Docker combination may not work.`,
)} Prisma + MongoDB + Docker combination\n may not work.`,
);
}
if (dbSetup === "docker") {
@@ -299,7 +298,7 @@ async function getDatabaseInstructions(
}
} else if (orm === "none") {
instructions.push(
`${pc.yellow("NOTE:")} Manual database schema setup required.`,
`${pc.yellow("NOTE:")} Manual database schema setup\n required.`,
);
}
@@ -315,13 +314,13 @@ function getTauriInstructions(runCmd?: string): string {
"•",
)} Build desktop app: ${`cd apps/web && ${runCmd} desktop:build`}\n${pc.yellow(
"NOTE:",
)} Tauri requires Rust and platform-specific dependencies.\nSee: ${"https://v2.tauri.app/start/prerequisites/"}`;
)} Tauri requires Rust and platform-specific dependencies.\n See: ${"https://v2.tauri.app/start/prerequisites/"}`;
}
function getPwaInstructions(): string {
return `\n${pc.bold("PWA with React Router v7:")}\n${pc.yellow(
"NOTE:",
)} There is a known compatibility issue between VitePWA \nand React Router v7.See: https://github.com/vite-pwa/vite-plugin-pwa/issues/809`;
)} There is a known compatibility issue between VitePWA\n and React Router v7. See:\n https://github.com/vite-pwa/vite-plugin-pwa/issues/809`;
}
function getStarlightInstructions(runCmd?: string): string {
@@ -335,13 +334,13 @@ function getStarlightInstructions(runCmd?: string): string {
function getNoOrmWarning(): string {
return `\n${pc.yellow(
"WARNING:",
)} Database selected without an ORM. Features requiring database access (e.g., examples, auth) need manual setup.`;
)} Database selected without an ORM. Features requiring\n database access (e.g., examples, auth) need manual setup.`;
}
function getBunWebNativeWarning(): string {
return `\n${pc.yellow(
"WARNING:",
)} 'bun' might cause issues with web + native apps in a monorepo. Use 'pnpm' if problems arise.`;
)} 'bun' might cause issues with web + native apps in a monorepo.\n Use 'pnpm' if problems arise.`;
}
function getWorkersDeployInstructions(runCmd?: string): string {

997
bun.lock

File diff suppressed because it is too large Load Diff

View File

@@ -1,19 +0,0 @@
{
"version": "2.33.6",
"npmClient": "bun",
"command": {
"publish": {
"conventionalCommits": true,
"message": "chore(release): publish",
"verifyAccess": false
},
"version": {
"conventionalCommits": true,
"message": "chore(release): version"
}
},
"packages": [
"apps/*",
"packages/*"
]
}

View File

@@ -30,7 +30,6 @@
"@biomejs/biome": "2.1.2",
"auto": "^11.3.0",
"husky": "^9.1.7",
"lerna": "^8.2.3",
"lint-staged": "^16.1.2",
"turbo": "^2.5.5",
"typescript": "5.8.3"