Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/rude-books-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"create-t3-app": major
---

Updates `@clack/prompts` dependency to v1.4

Drops support for Node 18
7 changes: 3 additions & 4 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"package.json"
],
"engines": {
"node": ">=18.17.0"
"node": ">=20.12.0"
},
"scripts": {
"typecheck": "tsc",
Expand All @@ -50,9 +50,7 @@
"pub:release": "pnpm build && npm publish"
},
"dependencies": {
"@clack/core": "^0.3.4",
"@clack/prompts": "^0.6.3",
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
"@clack/prompts": "^1.4.0",
"chalk": "5.2.0",
"commander": "^10.0.1",
"execa": "^7.2.0",
Expand All @@ -64,6 +62,7 @@
"devDependencies": {
"@auth/drizzle-adapter": "^1.1.0",
"@auth/prisma-adapter": "^1.6.0",
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
"@libsql/client": "^0.14.0",
"@planetscale/database": "^1.19.0",
"@prisma/adapter-planetscale": "^6.6.0",
Expand Down
10 changes: 6 additions & 4 deletions cli/src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,12 @@ export const runCli = async (): Promise<CliResults> => {
initialValue: "typescript",
});
},
_: ({ results }) =>
results.language === "javascript"
? p.note(chalk.redBright("Wrong answer, using TypeScript instead"))
: undefined,
_: ({ results }) => {
if (results.language === "javascript") {
p.note(chalk.redBright("Wrong answer, using TypeScript instead"));
}
return undefined;
},
styling: () => {
return p.confirm({
message: "Will you be using Tailwind CSS for styling?",
Expand Down
6 changes: 5 additions & 1 deletion cli/src/utils/validateAppName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ const validationRegExp =
/^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/;

//Validate a string against allowed package.json names
export const validateAppName = (rawInput: string) => {
export const validateAppName = (rawInput?: string) => {
if (!rawInput) {
return;
}

const input = removeTrailingSlash(rawInput);
const paths = input.split("/");

Expand Down
5 changes: 4 additions & 1 deletion cli/src/utils/validateImportAlias.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export const validateImportAlias = (input: string) => {
export const validateImportAlias = (input?: string) => {
if (!input) {
return;
}
if (input.startsWith(".") || input.startsWith("/")) {
return "Import alias can't start with '.' or '/'";
}
Expand Down
148 changes: 39 additions & 109 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading