Skip to content
Closed
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
2 changes: 1 addition & 1 deletion ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Below are all of the variables that are available to the file templates.
| `packageManager` | The package manager that is being used (e.g. `npm`, `yarn`, `pnpm`) |
| `projectName` | The name of the project |
| `typescript` | Boolean value that is `true` if TypeScript is being used, otherwise it is `false` |
| `tailwind` | Boolean value that is `true` if Tailwind CSS is being used, otherwise it is `false` |
| `tailwind` | Boolean value that is `true` if Tailwind CSS is being used, otherwise it is `false`. `Note`: Even if Tailwind CSS is set to false by the user during setup, it will be automatically enabled if any add-ons are selected, since all add-ons depend on Tailwind CSS |
| `js` | The file extension for files that do not include JSX. When in TypeScript mode it is `ts`. When in JavaScript mode it is `js`. |
| `jsx` | The file extension for files that include JSX. When in TypeScript mode it is `tsx`. When in JavaScript mode it is `jsx`. |
| `fileRouter` | Boolean value that is `true` if the file router is being used, otherwise it is `false` |
Expand Down
1 change: 0 additions & 1 deletion packages/cta-cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
createApp,
createSerializedOptions,
getAllAddOns,
getFrameworkById,
getFrameworkByName,
getFrameworks,
initAddOn,
Expand Down
4 changes: 2 additions & 2 deletions packages/cta-cli/src/ui-prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export async function selectRouterType(): Promise<string> {

export async function selectTypescript(): Promise<boolean> {
const typescriptEnable = await confirm({
message: 'Would you like to use TypeScript?',
message: 'Would you like to use TypeScript? (⚠️ Will be enabled automatically if you choose any add-ons)',
initialValue: true,
})
if (isCancel(typescriptEnable)) {
Expand All @@ -74,7 +74,7 @@ export async function selectTypescript(): Promise<boolean> {

export async function selectTailwind(): Promise<boolean> {
const tailwind = await confirm({
message: 'Would you like to use Tailwind CSS?',
message: 'Would you like to use Tailwind CSS? (⚠️ Will be enabled automatically if you choose any add-ons)',
initialValue: true,
})

Expand Down